DataGrid.setLeftColumn

Overview | Methods | Fields | This Package | All Packages

DataGrid.setLeftColumn

Sets the leftmost visible column in the grid.

Syntax

public void setLeftColumn( int index )

Parameters

index

The zero-based index of the column to be displayed as the leftmost column. A column's index indicates its position in the grid. The index of the last column is the value returned by getColumnCount minus 1. For more information, see the index property for Column objects.

Exceptions

WFCInvalidArgumentException thrown if index is not a valid column index.

Remarks

Calling setLeftColumn causes the grid to scroll so that the specified column becomes the leftmost column. Note that the current column remains unchanged. To change the current column, call setCurrentColumn.