I am not able to identify equivalent functionality for DataKeynames (RadGrid) for RadGridView. Any help is appreciated ?
Regards
1 Answer, 1 is accepted
0
Vlad
Telerik team
answered on 20 Dec 2010, 08:32 AM
Hi,
Such properties are usable only in the ASP.NET world where all controls are destroyed every post back and recreated from ViewState. In Silverlight and WPF the application (and controls) are live all the time and you do not need to store/restore such information. If you want to get a value of a property for some grid item you can use Items collection. For example:
var firstCustomer = RadGridView1.Items.OfType<Customer>().FirstOrDefault();
if(firstCustomer != null)
{
var id = firstCustomer.CustomerID:
}
Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight