Run the project and place a breakpoint on the code above. The program will stop on the breakpoint and you will be able to see the selected row index being passed through.
You can then use the code below to retrieve the ID value: are a great way to use primary keys without having to display them to the user.
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.
Delete a Record We can delete a record from the database table by clicking on the delete button that is in the Delete column of the Grid View.
Edit Index = -1 ' Bind_Check Box List() 'End Using For Each o Item As List Item In CType(Grid View1.