DataGrid.addColumn

Overview | Methods | Fields | This Package | All Packages

DataGrid.addColumn

Adds a column to the DataGrid control.

Syntax

public Column addColumn( String boundFieldName )

public Column addColumn( Column toAdd )

Parameters

boundFieldName

The name of the field in the underlying recordset to bind the new column to. Note that multiple columns can be bound to the same field.

toAdd

A Column object that represents the column to be added.

Return Value

Returns a Column object that represents the added column.

Remarks

The newly-added column is placed at the far right of the grid. To change the column's position, set its index property.

See Also   removeColumn