I have a problem with selected item on the grid from code behind using GridViewSelectColumn. I have this code:
It isn't working. Could you have some ideas?
private void SelectElement(string element) |
{ |
for (int i = 0; i < rg.Items.Count; i++) |
{ |
if (((WSIS.WSInSEAAtrTElementListy)rg.Items[i]).Atc_Id.ToString() == element) |
{ |
rg.SelectedItems.Add(rg.Items[i]); |
break; |
} |
} |
} |
It isn't working. Could you have some ideas?