Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
DataGrid.setSelectedForeColor
Sets the color for selected text in the grid.
Syntax
public void setSelectedForeColor( Color color )
Parameters
color
A Color object that specifies the color for selected text in the grid.
Remarks
Use the DataGrid control's selectedForeColor property to set the default color for selected text in all columns in the grid. To then customize this color for an individual column, set the Column object's selectedForeColor property. The selectedForeColor setting for a column overrides the grid's setting, for that particular column.
The default value of the grid's selectedForeColor property is Color.HIGHLIGHTTEXT. To return to this default, pass null to setSelectedForeColor.
To set the color of text when it is not selected, call setForeColor.
See Also getSelectedForeColor