Start Rowupdating gridview

Rowupdating gridview

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

You're accessing so many items without null checks that it could be any number of things. Are you sure all of the controls exist in the cells you're specifying?

The Row Updating event is raised when a row's Update button is clicked, but before the Grid View control updates the row.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

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.

Find Control("txt Number"), Text Box) Dim expiry As Text Box = Direct Cast(row.

Row Updating Dim row As Grid View Row = Direct Cast(grv Sample. Row Index), Grid View Row) Dim passport Number As Text Box = Direct Cast(row.

then whole row disappears and back to edit Item Description quantity price update/cancel 2 test1 33 --67 500 //click on update then this row becomes edit - - - - edit 3 text3 45 599 code: protected void Grid View3_Row Editing(object sender, Grid View Edit Event Args e) protected void Grid View3_Row Canceling Edit(object sender, Grid View Cancel Edit Event Args e) protected void Grid View3_Row Updating(object sender, Grid View Update Event Args e) Secondly, you could show us your complete code(includes page code and code), then we will help to test it and fix your problem.