Click here to Skip to main content
15,897,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can we use datakey for template field in gridview

i found one which is use with databound field in gridview..

what is the alternate of that if we are using template field have a label in it to display data..

here is the datakey feature used in databound field

item.ProductID = (int)GridView1.DataKeys[i].Value;
Posted

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