As a beginner it's very tough and challenging to work with controls like a Grid View in ASP. Even I faced difficulties at the starting point of my career. Here, I am not going to explain about Grid View and other events in it, because there are a lot of good articles about that.I am only going to show the different ways we can use code to take the value from Grid View.aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.The visitors to a web site can typically be divided into two groups: the users and the administrators.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.I am sharing this because I see a lot of questions on the forums on how to get the value from the Grid View object, and I know how.Now I will show you the C# code behind file of the above ASP.
Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.
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.
In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.
In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.