Skip to content

Commit 751af2b

Browse files
authored
Merge pull request #784 from telerik/new-kb-gridview-remove-border-shadow-8cb4724b2a024e7dae564d3d48210902
Added new kb article gridview-remove-border-shadow
2 parents f35d568 + 63fc499 commit 751af2b

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
3+
description: Learn how to remove the control border of RadGridView in UI for WinForms
4+
type: how-to
5+
page_title: How to Remove RadGridView Control Border in UI for WinForms
6+
meta_title: How to Remove RadGridView Control Border in UI for WinForms
7+
slug: gridview-remove-border
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)