Category / Section
How can not have a current cell in the WinForms GridControl?
4 mins read
Disable the current cell
When you want the grid to not have a current cell, you can move the location of the current cell to (-1, -1).
C#
// Force the current cell to move (-1, -1) which is not visible in the grid. this.gridControl1.CurrentCell.MoveTo(-1, -1);
VB
'Force the current cell to move (-1, -1) which is not visible in the grid. Me.gridControl1.CurrentCell.MoveTo(-1, -1)
Samples: