Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Sort items programmatically

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView.Net/WPF
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Tue Aug 26, 2008 5:53 pm    Post subject: HOWTO: Sort items programmatically

Use the SortByColumn method to programmatically sort items as shown below:

[C#]
fileview1.SortByColumn("Name",-1,SortOrders.Ascending); // Sort by 'Name' in ascending order

[VB.Net]
fileview1.SortByColumn("Name",-1,SortOrders.Ascending) 'Sort by 'Name' in ascending order


The same method can also be used to toggle the sort order as shown below:

[C#]
fileview1.SortByColumn("Name",-1,SortOrders.Toggle); // Toggle sort order by 'Name'

[VB.Net]
fileview1.SortByColumn("Name",-1,SortOrders.Toggle) ' Toggle sort order by 'Name'
Back to top
Display posts from previous:   
Forum Index -> FileView.Net/WPF All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group