.net cf 2.0 combobox sort issue, need help

M

Marc

Hello,



I've been searching all over google, msdn, books, etc. and for the life of
me I can't figure out how to sort a combobox.



Right now I populate a combobox by reading in lines from a text file. That
part works fine, but the contents of the combobox are not sorted and I'd
like to do that.



The only reference I've found on msdn is that the standard "sorted" property
of the combobox has been removed in the .net cf. So what to do then?



I'm sure I'm not the only one who's having this issue - I'm trying to move
from evb to .net cf and this is such a pain. I'm thinking how much easier
it would be if Microsoft would just write evb compatible runtimes, then we
wouldn't have to re-write all of our applications for Windows Mobile 5.0.



Please any help, examples or points in the right direction would be greatly
appreciated.



Marc
 
J

Joseph Byrns

Or you could stick them in a DataTable, create a dataview of the table with
a sort of your required sort and populate the combobox from the dataview,
either by databinding or just filling it directly.

Additionally there are loads of psort algorithms on internet you could use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top