Custom ILists, ComboBox Prompts

| 1 Comment

Following up on the last post which showed how to use custom ILists to merge two collections, this post shows how to use a custom IList to concatenate or append two collections.

Such a thing might be useful in a situation where you want to add more than one prompt to a ComboBox. In the example, I have the days of the week to choose from, but also want to add "Every Day", "Weekdays" and "Weekends" without modifying the original days of the week collection. Of course, if you concatenate the two collections, it offsets your selectedIndex.

Download Source
Run Demo


1 Comment

Great tip, thank you.

Leave a comment


Type the characters you see in the picture above.

About this Entry

This page contains a single entry by Alex Harui published on March 10, 2008 1:53 PM.

Custom ILists, CheckBoxDataGrid, Merged Arrays was the previous entry in this blog.

Custom ArrayCollections, Adding New Items to DataGrid is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.