DataGrid.setColumns

Overview | Methods | Fields | This Package | All Packages

DataGrid.setColumns

Sets the collection of all columns in the grid.

Syntax

public void setColumns( Column[] columns )

Parameters

columns

An array of Column objects that identify the columns to appear in the grid.

Remarks

Setting the columns property removes all columns that are currently in the grid and replaces them with the new set of columns. To simply append a single column to the grid's collection of columns, call addColumn.

For information about setting the columns property in the Properties window, see Adding, Removing, and Rearranging Columns.

See Also   getColumns