Gridview rowupdating keys
Open Visual Studio 2008 and create a new Web Application.
This example won’t hook into a database, but we will create a class to mock a table and retrieve data from it instead. This enables you to not display the ID to the user, yet still being able to retrieve it.
In this tutorial you'll display and update related data.You can also assign multiple primary keys if desired by separating them with a comma (,). This allows you to create a new instance of a class and assign values to properties in one easy step.For example you could have the following code:to store the information. Finally the code is bound to the When the user selects a record from the grid, the selected row index will be passed through as the Command Argument. hello my problem was that my gridview editable controls heep their old values. this is due to the grid view binding in the page_load method after every post back.