Gets or sets the first cell currently displayed in the DataGridView; typically, this cell is in the upper left corner.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The specified cell when setting this property is not in the DataGridView.
You can use this property to determine which cell is in the first row and column currently displayed in the control. Typically, this is in the upper left corner, but for right-to-left languages, it is in the upper right corner. You can also set this property to scroll the control to the indicated cell.
The following code example illustrates how to ensure that the current cell is visible after sorting. This code works only with an unbound DataGridView control. With a DataGridView control bound to an external data source, the current cell is not automatically persisted when sorting.
Available since 2.0