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.
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.
ok
Here i have to check whether ultragrid data had changed or not without considering to datasource..
that is grid have 10 rows with values ,when user edited few rows ,we have to find the edited rows only for update to
database
and if none of the rows were edited then no need to update database..
could you give me sample code for this?