Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
DataGrid.setCurrentColumn
Sets the current column in the grid.
Syntax
public void setCurrentColumn( Column column )
public void setCurrentColumn( int index )
Parameters
column
A Column object that represents the column to be made current.
index
The zero-based index of the column to be made current. 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 column is null or if index is not a valid column index.
Remarks
When calling setCurrentColumn, the grid is automatically scrolled if the column to be made current is not visible. Note that setting the current column does not change the current row. To set the current row, call setCurrentRow.