gridview primary key find

Posted by Swappy_Gaj under ASP.NET on 12/25/2014 | Points: 10 | Views : 1221 | Status : [Member] | Replies : 2
how to access primary key in gridview by binding more than two tables in gridview




Responses

Posted by: vishalneeraj-24503 on: 12/25/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi,
There is a DataKeyName property of gridview . You can give primary key column name to it.Generally it is used for assgning primary key column names.
For more details:-
http://www.codeproject.com/Articles/23833/DataKeyNames
http://www.codedigest.com/Articles/ASPNET/212_How_to_edit_and_Delete_records_in_a_gridview_using_datakeys.aspx

Swappy_Gaj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response