Skip to main content
All docs
V24.1

Grid Lines and Rounded Corners

  • 2 minutes to read

Grid Lines - WinForms Data Grid, DevExpress

The table below lists main properties that affect element appearance.

Visibility

OptionsView.ShowVerticalLines

OptionsView.ShowHorizontalLines

Appearance

Appearance.HorzLine

Appearance.VertLine

Display Rounded Corners

Enable the WXI skin and wrap the Grid control with the DevExpress.XtraEditors.RoundedSkinPanel (the Rounded Skin Panel wraps the outer corner of client controls and adds spacing below the Ribbon).

Display Rounded Corners - WinForms Data Grid, DevExpress

The DevExpress Rounded Skin Panel is not available in the Visual Studio Toolbox. To use this panel, you must create it in code.

using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraBars.Ribbon;
using DevExpress.Utils;

namespace DXApplication {
    public partial class Form1 : RibbonForm {
        public Form1() {
            InitializeComponent();
            this.rootPanel = new RoundedSkinPanel();
            this.Controls.Add(this.rootPanel);
            this.rootPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.rootPanel.Controls.Add(this.gridControl1);
            this.rootPanel.BringToFront();
            this.gridControl1.Dock = DockStyle.Fill;
            this.gridView1.BorderStyle = BorderStyles.NoBorder;
            // Hides horizontal and vertical grid lines.
            this.gridView1.OptionsView.ShowHorizontalLines = DefaultBoolean.False;
            this.gridView1.OptionsView.ShowVerticalLines = DefaultBoolean.False;
        }
        private DevExpress.XtraEditors.RoundedSkinPanel rootPanel;
    }
}

Important

Do not add more than one Rounded Skin Panel for each Form.

Examples