This is a migrated thread and some comments may be shown as answers.

Can't get border to remain hidden

1 Answer 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 21 Dec 2010, 11:12 PM
I have been trying to get my RadGridView to not display borders of each cell.  I have the following in my code:           

this.radGridView.GridViewElement.DrawBorder = false;
this.radGridView.GridViewElement.GroupPanelElement.DrawBorder = false;
this.radGridView.TableElement.DrawBorder = false;

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 22 Dec 2010, 12:08 AM
Hi Mark,

You can get ride of all the cell borders in the CellFormatting event.
Private Sub RadGridView1_CellFormatting(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.CellFormatting
    e.CellElement.DrawBorder = False
End Sub

hope that helps
Richard
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or