Home Forums WinForms controls Xceed Grid for WinForms Gradients on Column headers Reply To: Gradients on Column headers

Diane [Xceed]
Moderator
Post count: 1353

You need to specify that you will be overriding the default UI Style, and you should also be adding the row to the fixed headers (you need to clear the default content and re-add your own, otherwise you will end up with 2 column manager rows) :

ColumnManagerRow columnManager = new ColumnManagerRow();

columnManager.OverrideUIStyle = true;columnManager.GradientMap.GradientStops.Add(

new GradientStop( 0, Color.SteelBlue ) );
columnManager.GradientMap.GradientStops.Add(
new GradientStop( 0.5, Color.White ) );
columnManager.GradientMap.GradientStops.Add(
new GradientStop( 1, Color.SteelBlue ) );

detailStrikes.FixedHeaderRows.Clear();
detailStrikes.FixedHeaderRows.Add(new GroupByRow() );
detailStrikes.FixedHeaderRows.Add( columnManager );

Imported from legacy forums. Posted by Diane [Xceed] (had 568 views)