Version

Styling Active Cell Row Selector and Column Header Appearances

You can style the appearance of the UltraGridRow object’s, row selector and ColumnHeader for the active UltraGridcell . The Appearance objects can be changed through the ActiveCellRowSelectorAppearance and ActiveCellColumnHeaderAppearance properties. These properties are available on the Override object found on the WinGridcontrol’s DisplayLayout property as well as on each UltraGridBand .

In Visual Basic:

' Set Active cell's Row Selector appearance styling off of DisplayLayout of the Grid
Me.ultraGrid1.DisplayLayout.Override.ActiveCellRowSelectorAppearance.BackColor = Color.Red
' Set Active cell's Row Selector appearance styling off of DisplayLayout of each Band
'this.ultraGrid1.DisplayLayout.Bands[0].Override.ActiveCellRowSelectorAppearance.BackColor = Color.Purple;

In C#:

// Set Active cell's Row Selector appearance styling off of DisplayLayout of the Grid
this.ultraGrid1.DisplayLayout.Override.ActiveCellRowSelectorAppearance.BackColor = Color.Red;
// Set Active cell's Row Selector appearance styling off of DisplayLayout of each Band
//this.ultraGrid1.DisplayLayout.Bands[0].Override.ActiveCellRowSelectorAppearance.BackColor = Color.Purple;

WinGrid with Active cell’s Row Selector Appearance set to Red.

wingrid styling active cell row selector and column header appearances 01.png

In Visual Basic:

' Set Active cell's Column Header appearance styling off of DisplayLayout of the Grid
 Me.ultraGrid1.DisplayLayout.Override.ActiveCellColumnHeaderAppearance. ForeColor = Color.Blue
' Set Active cell's Column Header appearance styling off of DisplayLayout of each Band
'this.ultraGrid1.DisplayLayout.Bands[0].Override.ActiveCellColumnHeaderAppearance. ForeColor= Color.Blue;

In C#:

// Set Active cell's Column Header appearance styling off of DisplayLayout of the Grid
this.ultraGrid1.DisplayLayout.Override.ActiveCellColumnHeaderAppearance. ForeColor = Color.Blue;
// Set Active cell's Column Header appearance styling off of DisplayLayout of each Band
//this.ultraGrid1.DisplayLayout.Bands[0].Override.ActiveCellColumnHeaderAppearance. ForeColor= Color.Blue;

WinGrid with Active Cell’s Column Header Appearance set to Blue

wingrid styling active cell row selector and column header appearances 02.png