property Grid.BackColorSortBar as Color
Retrieves or sets a value that indicates the sort bar's background color.

TypeDescription
Color A color expression that indicates the background color of the sort bar.
Use the BackColorSortBar property to specify the background color of the control's sort bar. Use the SortBarVisible property to show the control's sort bar. Use the BackColorSortBarCaption property to specify the background color of the caption of the sort bar. The caption of the sort bar is visible, if there are no columns in the sort bar. Use the SortBarCaption property to specify the caption of the sort bar. Use the ForeColorSortBar property to specify the foreground color of the control's sort bar. Use the BackColor property to specify the control's background color. Use the BackColorHeader property to specify the background color of the control's header bar. Use the BackColorLevelHeader property to specify the background color of the control's header bar when multiple levels are displayed.

The following VB sample changes the appearance for the control's sort bar. The sample uses the "" skin.

With Grid1
    .SortBarVisible = True
    With .VisualAppearance
        .Add &H60, App.Path + "\sortbar.ebn"
    End With
    .ForeColorSortBar = 0
    .BackColorSortBar = &H60000000
    .BackColorSortBarCaption = .BackColorSortBar
End With

The following C++ sample changes the appearance for the control's sort bar:

#include "Appearance.h"
m_grid.GetVisualAppearance().Add( 0x60, COleVariant(_T("D:\\Temp\\ExGrid.Help\\sortbar.ebn")) );
m_grid.SetSortBarVisible( TRUE );
m_grid.SetBackColorSortBar( 0x60000000 );
m_grid.SetBackColorSortBarCaption( m_grid.GetBackColorSortBar() );

The following VB.NET sample changes the appearance for the control's sort bar:

With AxGrid1
    .SortBarVisible = True
    With .VisualAppearance
        .Add(&H60, "D:\Temp\ExGrid.Help\sortbar.ebn")
    End With
    .Template = "BackColorSortBar = 1610612736"
    .Template = "BackColorSortBarCaption = 1610612736"
    .ForeColorSortBar = Color.Black
End With

The following C# sample changes the appearance for the control's sort bar:

axGrid1.VisualAppearance.Add(0x60, "D:\\Temp\\ExGrid.Help\\sortbar.ebn");
axGrid1.SortBarVisible = true;
axGrid1.Template = "BackColorSortBar = 1610612736";
axGrid1.Template = "BackColorSortBarCaption = 1610612736";
axGrid1.ForeColorSortBar = Color.Black;

The following VFP sample changes the appearance for the control's sort bar

With thisform.Grid1
    With .VisualAppearance
        .Add(96, "D:\Temp\ExGrid.Help\sortbar.ebn")
    EndWith
    .SortBarVisible =.t.
    .BackColorSortBar = 1610612736
    .BackColorSortBarCaption = .BackColorSortBar
    .ForeColorSortBar = 0
EndWith