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

[Solved] gridview column header

2 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Senthil S
Top achievements
Rank 1
Senthil S asked on 07 Sep 2009, 09:42 AM
Hi,

How to set Border thickness(Right) for the gridview column header(Both in Design and Runtime)

Regards

Senthil.S

2 Answers, 1 is accepted

Sort by
0
Celeste
Top achievements
Rank 1
answered on 07 Sep 2009, 03:15 PM
I don't open a new thread because mine it's similar. I want to know how to change border brush from the rows of a gridview.
Do I have to edit GridViewRow Template? I did that and it did not work.

If you can send me a sample, I woud really thank it.

Celeste.
0
Kalin Milanov
Telerik team
answered on 10 Sep 2009, 09:42 AM
Hi,

I will try to answer both of your questions:

1. To change the border thickness of the HeaderCells you can simply define a style which sets the BorderThickness property to whatever you desire. In the sample provided below you will see that the right thickness is set to 10 (note that the default one is 2).

2. To change the border of the row you actually need to edit the grid lines of the cell. This way you will be able to benefit from the GirdLinesVisibility property to further customize your look. In the sample attached I have edited the template of the cell to make the grid lines Red. Of course you can change that value to whatever fits your case.

I hope this solves both of your questions.

Best wishes,
Kalin Milanov
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
Senthil S
Top achievements
Rank 1
Answers by
Celeste
Top achievements
Rank 1
Kalin Milanov
Telerik team
Share this question
or