Gridview rowupdating findcontrol c

The above piece of code will also do the same as label in Item Template and Textbox in the Edit Item Template.

By default all the boundfields will be trasferred as Textboxes in Edit Mode.

To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.

It enables you to select, sort, and edit these items.Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.In the above tutorial I tried to give you one of the easiest solutions and I hope you can go explore Grid View control editing further after learning the basics from this tutorial.NET Grid View markup and associated code lets first enumerate the important code pieces of this tutorial.In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.

Leave a Reply