Microsoft SDK for Java

DataGrid.getColumn

Retrieves the column at the specified index.

Syntax

public Column getColumn( int index )

Parameters

index

The zero-based index of the column to be retrieved. 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.

Return Value

Returns a Column object that represents the column at the specified index.

Exceptions

WFCInvalidArgumentException thrown if index is not a valid column index.

Remarks

To retrieve all columns in the grid, call getColumns.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.