This is a migrated thread and some comments may be shown as answers.

datakey names

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
abinav
Top achievements
Rank 1
abinav asked on 19 Nov 2010, 08:34 AM

i have done this and got the id but how to get the values pertaining to this id

string id = item.GetDataKeyValue("AgeGroup").ToString();

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 19 Nov 2010, 09:43 AM
Hello abinav,

GetDataKeyValue returns the value of key per GridDataItem. If you need to access the other data for GridDataItem  you can handle ItemDataBound event and check DataItem property of the item.

Regards,
Nikolay
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
abinav
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or