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

Gridview lines with theme

1 Answer 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
vs vs
Top achievements
Rank 1
vs vs asked on 30 Jan 2010, 08:08 AM
Hi,

I created a windows application with radribbonform. and i placed radgridview on that form and applied desert theme to radgridview and radribbonform also. Now i want to show vertical lines (sepertaes between columns). I applied below code what you gave previously. 
But it is not displaying.         


private void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            e.CellElement.BorderBottomWidth = 1;
            e.CellElement.BorderBottomColor = Color.Red;

            e.CellElement.BorderRightWidth = 1;
            e.CellElement.BorderRightColor = Color.Blue;

            //If you want to have a RadGridView with no lines at all  
           // e.CellElement.DrawBorder = false;  
        }

Please help me. thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 01 Feb 2010, 10:16 AM
Hello vs,

You should uncomment the last line in your code and set DrawBorder property to true. In addition you should set BorderBoxStyle to FourBorders
 
All the best,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
vs vs
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or