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

Sorting Problem for GridHyperLinkColumn

2 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
anna
Top achievements
Rank 1
anna asked on 04 May 2008, 08:42 PM
I have a radgrid with multiple cols. how do I apply sorting only on my first column that is a GridHyperLinkColumn?
I tried:

Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs)

If TypeOf e.Column Is GridHyperLinkColumn Then

Dim col As GridHyperLinkColumn = DirectCast(e.Column, GridHyperLinkColumn)

If col.UniqueName = "column1" Then

col.Allowsorting =

True ' this line gives error.' Allowsorting  is not allowed for GridHyperLinkColumn

End If

End If

End Sub

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 May 2008, 04:05 AM
Hi Anna,

Go through the following help document link.
Sorting for GridHyperLinkColumn/GridTemplateColumn

Thanks
Princy.
0
Darton
Top achievements
Rank 1
answered on 27 Feb 2012, 05:01 PM

Note: Princy's link is dead, but I found the information here: 

Sorting for GridHyperLinkColumn/GridTemplateColumn

Tags
Grid
Asked by
anna
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Darton
Top achievements
Rank 1
Share this question
or