Hi,
I have a radgrid on a usercontrol which is created at runtime.
I am adding a sort expression with the code below. I am not using the sort event.
Everything works fine like sorting and highlighting of the column except I don't see the related sort arrow in the column header.
How can I make the sort direction arrows appear?
I ve attached an image also.
Thanks for your help.
CreateGridColumns();
RadGrid1.VirtualItemCount = dv.Count;
GridSortExpression expression = new GridSortExpression();
expression.FieldName = SortColumn;
if (SortOrder == "ASC")
expression.SortOrder = GridSortOrder.Ascending;
else
expression.SortOrder = GridSortOrder.Descending;
RadGrid1.MasterTableView.SortExpressions.Clear();
RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);
RadGrid1.DataSource = dv;
RadGrdi1.DataBind();
I have a radgrid on a usercontrol which is created at runtime.
I am adding a sort expression with the code below. I am not using the sort event.
Everything works fine like sorting and highlighting of the column except I don't see the related sort arrow in the column header.
How can I make the sort direction arrows appear?
I ve attached an image also.
Thanks for your help.
CreateGridColumns();
RadGrid1.VirtualItemCount = dv.Count;
GridSortExpression expression = new GridSortExpression();
expression.FieldName = SortColumn;
if (SortOrder == "ASC")
expression.SortOrder = GridSortOrder.Ascending;
else
expression.SortOrder = GridSortOrder.Descending;
RadGrid1.MasterTableView.SortExpressions.Clear();
RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);
RadGrid1.DataSource = dv;
RadGrdi1.DataBind();