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
615
How to Find whether the row is updated with new value in UltraGrid (Vb.Net 2010) ?
posted

Hai...

I am working on a scenario in which, only updated rows need to be captured in order to update at the Backend.

In Detail     -    Ultragrid is loaded with values On Form Load to allow user to change values on the cells for the existing data.  On Button Save , Only updated rows need to be saved.  Is Any Default option Available to do the above?

 

Regards,

Janani Shivakumar,

Software Engineer.

Parents
  • 69832
    Offline posted

    UltraGridRow exposes a 'DataChanged' property, which returns true if the value of any cell in the row has been modified and the row has not yet been committed to the data source. Because this property is set back to false when the row is updated, which by default happens when a new row is activated or the grid loses focus, you would have to set the UpdateMode property to 'OnUpdate' and call the UpdateData method when you want to commit the user's changes.

    Note that an alternative approach would be to handle AfterRowUpdate and maintain a cache of the rows that were updated, and use that cache to determin which rows have been modified.

Reply Children