Removing the RadGridView Border
Environment
Product Version | Product | Author |
---|---|---|
2025.3.812 | RadGridView for WinForms | Dinko Krastev |
Description
By default, a border surrounds the RadGridView control. This border is not related to the cell border but is the outermost border of the control itself. In this article, we will show how to remove that border.
If a MaterialBlueGrey theme is used, you will need to remove the shadow. In this theme, a shadow is drawn around the control, not a border.
Solution
To remove the control border of the RadGridView:
- If using the MaterialBlueGrey theme, the border is not enabled, but its shadow may appear. Disable the shadow by setting the
EnableElementShadow
property tofalse
:
this.radGridView1.RootElement.EnableElementShadow = false;
- If using a different theme, remove the border by setting the
DrawBorder
property tofalse
:
this.radGridView1.GridViewElement.DrawBorder = false;