Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
DataGrid.setSelectedBackColor
Sets the background color for selected cells in the grid.
Syntax
public void setSelectedBackColor( Color color )
Parameters
color
A Color object that specifies the background color for selected cells in the grid.
Remarks
Use the DataGrid control's selectedBackColor property to set the default background color for all selected cells in the grid. To then customize this color for an individual column, set the Column object's selectedBackColor property. The selectedBackColor setting for a column overrides the grid's setting, for that particular column.
The default value of the grid's selectedBackColor property is Color.HIGHLIGHT. To return to this default, pass null to setSelectedBackColor.
To set the background color of nonselected cells in the grid, call setBackColor.
See Also getSelectedBackColor