Articles in this section
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:

C#: DisableCurrentCell

VB: DisableCurrentCell

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied