hello,
I want to display one grid column as a sorted column since query result is sorted by that column values.
Well, i dont know the best way to display it but i found following code on the forum.
After applying that code grid appears to be hanged and then none of the column can be sorted on clicking the column header.
Can you please suggest me the best way to display the sorted column by default without hampering other features of radGrid ?
I want to display one grid column as a sorted column since query result is sorted by that column values.
Well, i dont know the best way to display it but i found following code on the forum.
After applying that code grid appears to be hanged and then none of the column can be sorted on clicking the column header.
Protected
Sub
rg_Edit_Report_PreRender(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Handles
rg_Edit_Report.PreRender
Dim
SortExp
As
New
GridSortExpression()
SortExp.FieldName =
"CASE"
SortExp.SortOrder = GridSortOrder.Ascending
rg_Edit_Report.MasterTableView.SortExpressions.Add(SortExp)
rg_Edit_Report.MasterTableView.Rebind()
End
Sub
Can you please suggest me the best way to display the sorted column by default without hampering other features of radGrid ?