Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

DataGrid.setSelectedColumns

Selects the specified columns.

Syntax

public void setSelectedColumns( Column[] columns )

Parameters

columns

An array of Column objects that identify the columns to be selected.

Remarks

Calling setSelectedColumns clears any previous selection in the grid. Note that you cannot select both columns and rows at the same time. To programmatically select rows, call setSelectedRows.

The DataGrid control does not support the selection of single cells.

See Also   getSelectedColumns, clearSelection