I tried the ClearSelection method, it is deselecting the row but the selected cell is still highlighted
Asked
Active
Viewed 2,936 times
-1
-
3These kind of questions invariably do poorly at SO. The intersection of the set of SO users that answer question with the set of users that use 3rd party components is pretty empty. Use the vendor's support channels, Telerik's support forum is here: http://www.telerik.com/community/forums.aspx – Hans Passant Jan 29 '12 at 22:20
4 Answers
5
There used to be a bug in that grid which could be circumvented like this:
radGridView1.CurrentRow = null;
radGridView1.GridElement.Update(Telerik.WinControls.UI.GridUINotifyAction.StateChanged);
Not sure if this will be helpful in your situation though.

Jan Willem B
- 3,787
- 1
- 25
- 39
0
Tarhini did you tried this datagridview event,
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.ClearSelection();
}

harisharju
- 334
- 1
- 11
0
How about
foreach(var cell in radGridView1.SelectedCells.ToArray())
{
cell.IsSelected = false;
}

Roy Goode
- 2,940
- 20
- 22
-1
Check the SelectionMode property of the control. You may have CellSelect while you may need FullRowSelect.

Symphonicmind
- 100
- 2
- 2
- 6