Click here to Skip to main content
16,020,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I designed a gridview in such a way, while clicking on update except employee id (label) all other fields as textbox.
Now i am unable to access the value of employee id to update the row.

So, please tell how to get the value from label control in grid view.

If u have any examples please send one example.
Posted
Comments
koool.kabeer 28-Jul-10 6:19am    
sorry sorry sorry i misunderstood you

1 solution

Set datakeynames property of GridView as EmployeeID.

You can access the DataKey value of a GridView using GridView.DataKeys Property[^]

Hope this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900