DataGrid rowchanging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shravan

    #1

    DataGrid rowchanging

    Hi ,
    I want to catch the row changing of a grid before it is changed and
    raise an event and based on event I should supress the change or allow
    it. Though I am doing it by changing the row and reverting back now, I
    would like to catch it before the row is actually changed due to a
    variety of problems with the existing approach. Anybody please help me
    how could I do this.

    Thanks,
    Shravan.
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: DataGrid rowchanging

    Shravan,

    I think that instead of catching the events on the DataSet itself, you
    should be encapsulating the data and then controlling the access to the data
    through that. This way, you control exactly what is changed and what can be
    changed.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Shravan" <shravan_gone@s emanticspace.co m> wrote in message
    news:8f1f2712.0 307250552.546d0 313@posting.goo gle.com...[color=blue]
    > Hi ,
    > I want to catch the row changing of a grid before it is changed and
    > raise an event and based on event I should supress the change or allow
    > it. Though I am doing it by changing the row and reverting back now, I
    > would like to catch it before the row is actually changed due to a
    > variety of problems with the existing approach. Anybody please help me
    > how could I do this.
    >
    > Thanks,
    > Shravan.[/color]


    Comment

    Working...