TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sasikumar
NA
15
0
How to Sort a bindinglist ?
Jan 18 2012 5:49 AM
Hi,
Please help in sorting the below list --
var varSource = new BindingList<KeyValuePair<string, string>>();
varSource.Add(new KeyValuePair<string, string>("key1", "value1"));
varSource.Add(new KeyValuePair<string, string>("key4", "value4"));
varSource.Add(new KeyValuePair<string, string>("key3", "value3"));
varSource.Add(new KeyValuePair<string, string>("key5", "value5"));
varSource.Add(new KeyValuePair<string, string>("key2", "value2"));
How do I sort the above list before binding it to a combo box so that the details are listed in ascending order in the combobox?
Please advise.
Thanks.
Reply
Answers (
4
)
Weather forecast/how to display whether forecasts in a webpage
How can i change my windows forms controls according to Machine resolution ?