Gridview rowupdating code in asp net Sexychatsite
By using the Grid View Row object we can find the reference of any control in the row in which user is editing the data.
In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.
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.
To get the Primary Key reference we can use the Data Keys collection of the Grid View.
This collection only requires the row index no and it will give us the primary key.
Simple Insert, Select, Edit, Update and Delete in Asp. – The above block of codes in Row Updating event, finds the control in the Grid View, takes those values in pass it to the Customers Cls class Update method.