Gets the index of the first visible column in a grid.
[Visual Basic] Public ReadOnly Property FirstVisibleColumn As Integer [C#] public int FirstVisibleColumn {get;} [C++] public: __property int get_FirstVisibleColumn(); [JScript] public function get FirstVisibleColumn() : int;
The index of a DataGridColumn.
If a particular column is not visible, set the CurrentCell property to the cell that should be visible.
The following example scrolls the grid if the first visible column is greater than five.
[Visual Basic]
Private Sub ScrollGrid(ByVal myGrid As DataGrid) If myGrid.FirstVisibleColumn > 5 Then myGrid.CurrentCell = 1,1 End If End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace | CurrentCell