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

gridview.current column always null

2 Answers 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 26 Oct 2012, 05:56 PM
How can I determin in code which column is sorted in a RadGridView?
This always returns null

if (grid.CurrentColumn != null)
{
    DoSomething
}
else
    MessageBox.Show("No column selected");

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 29 Oct 2012, 07:06 AM
Hi,

 You could determine the sorted columns by the SortDescriptors/ColumnSortDescriptors defined for the RadGridView. They are available in the RadGridView.SortDescriptors collection.

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jeff
Top achievements
Rank 1
answered on 29 Oct 2012, 01:34 PM
Thank you.  This has led me to what I was looking for. 
Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or