Onrowupdating newvalues

Rated 3.88/5 based on 551 customer reviews

May be you may think why am I using link buttons as we are provided with some command field buttons by Grid View.

How do you change a record in the Bulk Edit Gridview ? I think it was something to do with the button binding the datasource to the gridview on a click event......anyway...So am calling the method Bind Grid Data method which is overloaded . I have a gridview that I'm trying to update the Date something is corrected in the database. To avoid this we need to keep the property Read Only as false, Then in the edit mode nothing will happenes. The reason I use Template Field instead of Bound Field is that, it is very easy to grab those controls in the codebehind if we user labels or textboxes.In case of the bound field’s we need to check what column it is and need to use index of that cloumn, which is little hard and even in future if we change the column order If you see the Last Template Field part in the above code, I am using the link buttons for edit, update, delete and cancel.

Leave a Reply