Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
how to get previous value of a cell on updateRow event
posted

Hi friends,

Basically I need the previous value of a cell or cells when I modify a row. Thus I can find the item in my database and then update it.

 Thanks in advance.

Talo

Note: The previous cells value are a part of the primary key.

Parents
No Data
Reply
  • 90
    posted

    The RowEventArgs parameter in your event handler has two objects - Row and Data.  Row contains the new details and Data contains the old details.

    Something like UltraGridCell oldValue = ((UltraGridRow) e.Data).Cells.FromKey("Description"); will get you the old cell. 

    I'm assuming you're talking about the server-side events here. 

Children
No Data