NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.FirstVisibleColumn

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;

Property Value

The index of a DataGridColumn.

Remarks

If a particular column is not visible, set the CurrentCell property to the cell that should be visible.

Example [Visual Basic]

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CurrentCell