Hi,
In the RowUpdating Event of WebDatagrid, I want to know which columns of the row were updated? Is there a way that we can get the column data of the updated rows in the event using ROwUpdatingEvenArgs Class?
Hello Paven,
Thank you for contacting us,
Unfortunately currently its not possible to determine which column was updated, this is row updating and a couple of cell values (column) could be updated, and the entire change is committed to the server.
Okay, But the ROwUpdating Event fires once for each edit of column. So, we should have the column name being edited for that event.
Then Is there a way I can get the Column Name being edited into the RowUpdating Event of INfragistics?
All I am trying to do is, detect the column name of grid being edited and perform some action in the Codebehind of this Infragistics Grid. or
I have made a user control with your infragistics as its main control and using it on my Page. Is there a way that I can assign the Column name being edited to some hidden field of this user control and get it in ROwUpdating event?
Hello Pavan,
RowUpdating event is firing for each modified row, not column. For example, if you have BatchUpdating, and update values from rows 1,2 and 3, and make a postback, RowUpdating will be fired 3 times, for each modified row.
As for the HiddenField, yes you can try to store the column key in hidden field, because it will be accessible on both server and client side.The only thing is that if you modify two cell values (from two different column) this logic will fail.
In general you should look to this Update like a Column Update, you should consider it only as a Row Update. This is why the event is called, RowUpdating.
Looking forward for your reply.
Hi Zdravko,
Please let us know how to find modified rows in RowUpdating event when it is fired 3 times?