Onrowupdating

For those who do not know on how to generate Events in Grid View you can follow these steps below: I have a project that I coppied the above code into.

aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.

In my custom grid View control I cannot raise the Row Updated event.

The visitors to a web site can typically be divided into two groups: the users and the administrators.I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.Font-Names="Verdana" Font-Size="10" Data Key Names="Product ID" Auto Generate Columns="false" onrowcancelingedit="Grid View1_Row Canceling Edit" onrowediting="Grid View1_Row Editing" onrowupdating="Grid View1_Row Updating"In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.