For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.In this article we create a Gridview from database and add some additional operations such a add, edit and delete data in the Grid View control. Find Control("txtaddress"), Text Box) Dim city As Text Box = Direct Cast(grid View. aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.Here we can update Name, Emp_Code and Emp_Age fields depending on the Id field of the "EMPLOYEE" table.
Click Dim total As String = 0 For i As Integer = 0 To Data Grid View1. The Grid View control is a tabular databound control but sometimes it is used like a spreadsheet control. NET 2.0 and is an improved version of the Data Grid control. We can use this to display data from a database and edit, sort and select the data.Database Table Structure We are using an "EMPLOYEE" table so the "EMPLOYEE" table design is: Design of Grid View We design a Grid View with which we can perform update and delete operations. To String() Dim stor_name As Text Box = Direct Cast(grid View. Find Control("txtname"), Text Box) Dim stor_address As Text Box = Direct Cast(grid View.