Rowupdating get datakey
New Values("Location ID"); ok the the update worked when I assign a mock value..
Text could not avoid the cell numbering :/ somehow select Row.
New Values -- it will have all the values, as does e. There are two in that event so data source controls can differnitate bewteen the two.
I just need to get it working with the "real" one from the gridview row Sql Data Source Locations. Add("Location Name Update", Type Code.[String], "dd") Dim select Row As Grid View Row = Grid View Locations.
To do that we need a Row Editing event of the Grid View.
Now we define a method for opening a connection with the relation database and returns a SQL connection object depending on the connection string that is passed as a parameter of the Sql Connection class constructor.When a Grid View row is in edit mode then we can update the row's record in the relational database table.So we need to create a Stored Procedure on which we pass all parameters that are updateable along with the primary key value, in other words the row data's key value that is being updated.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.Here we can update Name, Emp_Code and Emp_Age fields depending on the Id field of the "EMPLOYEE" table.