Hi Paul,
Thank you for your suggestion.
We regret for the delayed response.
You can deselect the selected row by clicking any cell in the selected row by using CurrentCellMoved event. Please use below code snippet to achieve this behavior:
[C#]
private void gridControl1_CurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventArgs e)
{
if(this.ignoreCurrentCellChange == true)
{
this.ignoreCurrentCellChange = false;
return;
}
int row = this.gridControl1.CurrentCell.RowIndex;
GridRangeInfo range = GridRangeInfo.Row(row);
if(this.lastSelectedRow != -1 && this.lastSelectedRow == row && this.gridControl1.Selections.Ranges.Contains(range))
{
this.gridControl1.Selections.Ranges.Clear();
this.gridControl1.RefreshRange(range);
this.lastSelectedRow = -1;
this.ignoreCurrentCellChange = true;
}
else
{
this.lastSelectedRow = row;
this.ignoreCurrentCellChange = true;
}
}
Please refer the sample in the below link which illustrates the above:
http://websamples.syncfusion.com//samples/Grid.Windows/F73222/main.htmPlease try this and let me know if this helps.
Thanks,
Melba