Skip to content

Commit 565d7bd

Browse files
author
KB Bot
committed
Added new kb article gridview-remove-border-shadow
1 parent 630b3dc commit 565d7bd

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Removing the RadGridView Border and Shadow
3+
description: Learn how to remove the control border and shadow of RadGridView in UI for WinForms
4+
type: how-to
5+
page_title: How to Remove RadGridView Control Border and Shadow in UI for WinForms
6+
meta_title: How to Remove RadGridView Control Border and Shadow in UI for WinForms
7+
slug: gridview-remove-border-shadow
8+
tags: gridview, ui-for-winforms, enableelementshadow, draw,border
9+
res_type: kb
10+
ticketid: 1684037
11+
---
12+
13+
## Environment
14+
15+
|Product Version|Product|Author|
16+
|----|----|----|
17+
|2025.3.812|RadGridView for WinForms|[Dinko Krastev](https://www.telerik.com/blogs/author/dinko-krastev)|
18+
19+
## Description
20+
21+
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.
22+
23+
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.
24+
25+
## Solution
26+
27+
To remove the control border of the RadGridView:
28+
29+
1. If using the **MaterialBlueGrey** theme, the border is not enabled, but its shadow may appear. Disable the shadow by setting the `EnableElementShadow` property to `false`:
30+
31+
````C#
32+
33+
this.radGridView1.RootElement.EnableElementShadow = false;
34+
35+
````
36+
37+
2. If using a different theme, remove the border by setting the `DrawBorder` property to `false`:
38+
39+
````C#
40+
41+
this.radGridView1.GridViewElement.DrawBorder = false;
42+
43+
````
44+
45+
## See Also
46+
47+
- [RadGridView Overview](https://docs.telerik.com/devtools/winforms/controls/gridview/overview)

0 commit comments

Comments
 (0)