So how do solve this?
In order to set background color of a GridControl, winforms you have to:
-go to gridControl and set Style to Flat;
-set UseDefaultLookAndFeel to False
-go to gridview and set Appearance.HeaderPanel.BackColor - your color (this will automatically set useBackColor to true, also)
Otherwise if you want to set it by code you may use this:
gridControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat; gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; gridView1.Appearance.HeaderPanel.Options.UseBackColor = true; gridView1.Appearance.HeaderPanel.BackColor = System.Drawing.Color.Red;If this helped you, go ahead and share :)
customize the color of grid column
ReplyDelete