Hi all,
How to track whether the grid is edited (any of the cell value is changed withrespect to that of the binded value).is there any direct method..........
Thanks in advance ,
Regards,
Arun
This depends on a number of factors, like what your UpdateMode is set to and what your data source is.
By default, the grid will update the underlying data source when the active row changes or the grid loses focus. So at that point, there is no longer anything for the grid to track.
Mike,
thanks for the info,I wud like to know if i bind an arraylist or ilist ,will I be able to get the modified records alone at one shot without any looping as in the case of Datatable.Getmodified()
Regards,.
No. The method you are referring to is a method of the DataTable object. It's up to the data source to track this kind of information and an ArrayList does not support tracking changes.
Hi Arun,
I suppose you could change the UpdateMode on the grid to OnRowChangeOrLostFocus, then compare the entire row in BeforeRowUpdate instead of one cell at a time in BeforeCellUpdate.
Hi Mike,
Thanks for the insight,Wat could be the best way to catch up with whether any data in the cell is modified .......
I prefer to use the beforecellUpdate event ,within that check for the original value and new value if changed then raise a flag...but this will get triggered for each and every change , ,,,,,
any possible work around you find for this...
I use the performAction -->commitrow and grd.update,grd.Endupdate will any of these methods return me the modifcatio info ???.........please help me .. thanks in advance