In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.
One way is to use the “” control also provides built-in support for editing. If you use one of the Data Source controls, you can provide the update logic in the Data Source control.
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.
New Edit Index 'Bind data to the Grid View control. Bind Data() End Sub Private Sub Create Data Table() Dim cmd As New System.
Dim dt = CType(Session("dt"), Data Table) 'Update the values.