Rowupdating in gridview in c net

posted by | Leave a comment

In the code below I have shown how you can extract the new values from the textboxes inside the Grid View. Once, you got the values you just need to send them to the database.

rowupdating in gridview in c net-75

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.

I know its very annoying and hard to get the data out of the data controls (gridview in this case), but there are other things you can do to make it easier.

The reason is we don't fill the values unless your are bound to a datasource control.

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.

Leave a Reply

Free online hot sex chat sighs