Gridview rowupdating keys


14-Mar-2017 16:49

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.

gridview rowupdating keys-50

Girlscam1

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.



Here Mudassar Ahmed Khan has explained with an example, how to use the RowUpdating event of GridView control using C# and In order to illustrate this concept I will make use of an GridView control on which I’ll perform Edit and Update operations and save the updated data with the temporary DataTable.… continue reading »


Read more

Now i will explain How to read DataKeyNames on GridView's RowUpdating Event in Suppose you have a GridView grdEmp having DataKeyNames DataKeynames EMP_ID.… continue reading »


Read more