DataGrid::FirstVisibleColumn Property
.NET Framework (current version)
Gets the index of the first visible column in a grid.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
A column is considered visible even if it is partially concealed.
If a particular column is not visible, set the CurrentCell property to the cell that should be visible.
The following code example scrolls the grid if the first visible column is greater than five.
Private Sub ScrollGrid(ByVal myGrid As DataGrid) If myGrid.FirstVisibleColumn > 5 Then myGrid.CurrentCell = New DataGridCell( 1,1 ) End If End Sub
.NET Framework
Available since 1.1
Available since 1.1
Show: