This is a migrated thread and some comments may be shown as answers.
shorting with two column in grid by default
1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
Ashish
Top achievements
Rank 1
Ashish asked on 16 May 2013, 06:54 AM
Hi Team,
I want by data is loaded by default shorted with according to two column in grid means combination of two column  shorting. how it is possible please help me.

Regards
Ashish

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 18 May 2013, 07:21 PM
Hello,

In order to accomplish this, you will need to add multiple SortDescriptors, please take a look at the documentation link.

var descriptor1 = new SortDescriptor();
descriptor1.PropertyName = "Column1";
descriptor1.Direction = ListSortDirection.Ascending;
 
var descriptor2 = new SortDescriptor();
descriptor2.PropertyName = "Column2";
descriptor2.Direction = ListSortDirection.Descending;
 
this.radGridView1.SortDescriptors.Add(descriptor1);
this.radGridView1.SortDescriptors.Add(descriptor2);

Best Regards,
Emanuel Varga MVP


Asked by
Ashish
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or