Microsoft SDK for Java

DataGrid.removeColumn

Removes a column from the grid.

Syntax

public void removeColumn( int index )

Parameters

index

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

To remove all columns from the grid, call clearColumns.

See Also   addColumn

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