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

Radgrid sorting via clicking column

2 Answers 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 11 Oct 2013, 10:05 AM
Is their anyway to click a column programactically in winforms using q2 2013 the company i work for uses your controls hallmark solutions in belfast. id rather sort by the grid than on the source

2 Answers, 1 is accepted

Sort by
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 14 Oct 2013, 02:50 PM
Hi Dave,
have a look at the docs at:

http://www.telerik.com/help/winforms/gridview-sorting-setting-sorting-programmatically.html

Regards
Erwin
0
Dimitar
Telerik team
answered on 15 Oct 2013, 12:54 PM
Hi Dave,

Thank you for contacting Telerik support.

To achieve the desired effect just set the SortOrder property in code like this:
radGridView1.Columns[1].SortOrder = RadSortOrder.Descending;

Also I recommend you to take a look at the article that Erwin has suggested.

I hope this will be useful. Should you have further questions, I would be glad to help.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Dave
Top achievements
Rank 1
Answers by
erwin
Top achievements
Rank 1
Veteran
Iron
Dimitar
Telerik team
Share this question
or