DevExpress GridControl control for WinForms supports BorderStyle property (through it's View), but it seems like it doesn't support BorderColor. Or am I wrong?
How can I set BorderColor property for GridControl borders?
DevExpress GridControl control for WinForms supports BorderStyle property (through it's View), but it seems like it doesn't support BorderColor. Or am I wrong?
How can I set BorderColor property for GridControl borders?
You could always set BorderStyle to NoBorder and wrap the GridControl inside a PanelControl.
Set up the properties something like this:
gridControl1.MainView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
panelControl1.LookAndFeel.UseDefaultLookAndFeel = false;
panelControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
panelControl1.Appearance.BorderColor = Color.Red;
panelControl1.Appearance.Options.UseBorderColor = true;
panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
Are you using skins? The skinning mechanism will most likely override your border color setting unless you disable them.