Hi. I have a strange problem. I'm using a Telerik RadGridView on a RadForm. During form Load I populate the control. Then during form Show I try to set which row is selected (i.e. it's not the first row).
What I see afterwards is that the first row in the grid is Selected, but the row I wanted selected is "sort of" selected. It's highlighted but not with the same dark/bold colors that the selected row is. I've attached a screenshot just to make it more clear.
Here's my code to perform the selection.
dgv.ClearSelection() |
For Each row In dgv.Rows |
If row.DataBoundItem.Equals(rowObject) Then |
row.IsSelected = True |
Exit For |
End If |
Next |
Can you help tell me what I'm doing wrong? TIA!
(All code is .NET 3.5, Windows 7 x64, VS 2008. I'm using the 2010 Q1 SP2 build / 2010.1.10.0504.)