Rowupdating in grid

21 Aug

When you have several pages in a grid, grid rows are indexed beginning with 0 on each page.Note that group cells are also counted as rows and, thus, have row indexes.To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. I have tried to add an event handler to the Row Updated event of my custom control but it is not called.I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

In addition, you can perform some actions when a user clicks a row. The index of the row to which the current cell belongs.

I was just testing if I will get the changed value out of the textbox when updating with no luck.

The event's Row Handle parameter specifies the previous handle (position) of the row before the Row Updated event was raised.

Do not use this parameter to identify the current row. The Row Updated event occurs after the Validate Row event, which is fired before the modified row is saved to the data source.