DataGrid.setCurrentRow

Overview | Methods | Fields | This Package | All Packages

DataGrid.setCurrentRow

Moves the current position to the row associated with the specified bookmark.

Syntax

public void setCurrentRow( Object bookmark )

Parameters

row

The bookmark associated with the row to be made current.

Exceptions

WFCInvalidArgumentException thrown if the DataGrid control is not bound or if bookmark refers to an invalid row.

Remarks

Calling setCurrentRow will automatically scroll the grid if the row to be made current is not visible. Note that setting the current row does not change the current column. To set the current column, call setCurrentColumn.

See Also   getCurrentRow