Overview | Methods | Fields | This Package | All Packages
Retrieves the collection of all columns in the grid.
Syntax
public Column[] getColumns()
Return Value
Returns an array of Column objects that represent the columns in the grid. The order of the elements in the array matches the order of the columns displayed in the grid. If the grid contains no columns, an empty array is returned.
Remarks
The array of columns returned by getColumns includes all columns in the grid, even if a column's visible property is set to false. The number of columns in the array is the value returned by getColumnCount.
To retrieve a single column in the grid, call getColumn.
See Also setColumns