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

Borderthickness for the Headercell

0 Answers 75 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 06 Apr 2010, 09:14 AM

Hi,

I have used this in grdTReview_OnRowLoaded.

Dim

 

headerCells = grdTReview.ChildrenOfType(Of Telerik.Windows.Controls.GridView.GridViewHeaderCell)()



To set the Borderthickness for the Headercell("Employee") i am using the below code.

 

headerCells(1).BorderThickness = New Thickness(0, 0, 2, 0)

 

headerCells(1).BorderBrush = New SolidColorBrush(Color.FromArgb(255, 0, 0, 0))


But i want is

 

headerCells("Employee").BorderThickness = New Thickness(0, 0, 2, 0)


Bcoz at runtime i am hiding some of the columns,so it gives problems when we use the index(headerCells(1)).

When i hide the first Column ie (grdTReview.Columns("Manager").IsVisible)...for the Employee header has the index 0 instead of 1....so i want to use like this(headercells("Employee").BorderThickness = New Thickness(0, 0, 2, 0))

 

Thanks in Advance

Regards

Senthil.S

 

 


 

Tags
GridView
Asked by
Senthil S
Top achievements
Rank 1
Share this question
or