Hello,
I've got a grid where AutoCrud is turned off and enable data view state is true. I can add and update record in my grid, but I'd like to use the IsDirty flag to only write data for records that have changes. I see when I add a record to the grid through JavaScript or edit an existing record in the grid, the text turns to italics to indicate a change. Can that indicator be picked up when looping through the rows of the grid? I assumed the IsDirty() flag would indicate a change has been made in a GridRecord, but maybe not?
Any help would be appreciated.
Jeff
Nikolay,
What is the point of IsDirty if I can use it to tell that data has changed in the grid?
Richard
What is the point of IsDirty if it won't tell me that a row of data has been changed?
This workaround seems so roundabout.
Hi Jeff,
If you have any other questions, please do not hesitate to ask.
Hi Dave,
Yeah - this was with a WebDataGrid - I actually had a different idea and went with that - and I think you helped me with a different post - and that was to put an unbound checkbox column in the grid that is hidden, then using the CellChanging event, check that box. That's working for me well now, so that's the direction I've decided to go.
Thanks,
And this is assuming you are using the WebDataGrid, which from your code references and description it sounds like.