Microsoft SDK for Java

DataGrid.clearColumns

Removes all columns from the grid.

Syntax

public void clearColumns()

Remarks

To repopulate the grid, you can:

Call rebind to add the default set of columns from the recordset.

Call addColumn to add a single column.

Call setColumns, if you have stored an array of Column objects that were previously constructed.

To remove only a single column from the grid, call removeColumn.

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