Please help in sorting the below list --
var varSource = new BindingList
varSource.Add(new KeyValuePair
varSource.Add(new KeyValuePair
varSource.Add(new KeyValuePair
varSource.Add(new KeyValuePair
varSource.Add(new KeyValuePair
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.

VulpesRank #55 · 29.2K reputationPosted Jan 18, 2012, 1:26 AM EST
VulpesRank #55 · 29.2K reputationPosted Jan 18, 2012, 1:04 AM EST
http://msdn.microsoft.com/en-us/library/ms132727.aspx
sasikumar15 reputationPosted Jan 18, 2012, 1:15 AM EST
Thanks for the response. But in the mean time, I just tried the below option and it worked.
var sortedSource = from col in varSource
orderby col.Value
select col;
combobox.datasource = sortedSource.tolist();
Thanks.
sasikumar15 reputationPosted Jan 18, 2012, 2:04 AM EST