The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

C# and ArrayLists by tzulah2004-10-21 13:55:04
  You can usually by Didactylos 2004-10-21 14:18:16
create a data structure with the sorting properties that you want. Have a look at CollectionsUtil.CreateCaseInsensitiveSortedList or SortedList Constructor (IComparer).

To get a collection with comparison capabilities, it must be sorted. The bonus is, it will give you better performance because it can use a binary search instead of a linear search.

Unfortunately, this may not be incredibly useful in your situation. But... if you create your data structure first, you can then use databinding to fill your listbox or whatever. I'm going to bed now, so if you need more advice, ask again tomorrow, or email me, or wait for a more helpful UFie...
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)