I have a problem with selected item on the grid from code behind using GridViewSelectColumn. I have this code:
private void SelectElement(string element)
for (int i = 0; i <rg.Items.Count; i++)
if (((WSIS.WSInSEAAtrTElementListy)rg.Items[i]).Atc_Id.ToString() == element)
It isn't working. Could you have some ideas?
1 Answer, 1 is accepted
answered on 24 Jun 2010, 03:38 PM
Are you executing this code right after ItemsSource has been set? If that is the case I would kindly ask you to move the selection logic to the DataLoaded event. Currently the selection mechanism cannot be invoked before RadGridView is shown for the first time. We have already fixed this limitation for Q2.
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items