• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. List Controls > Using List Controls

Using List Controls

Given the number of list controls exposed by the .NET Framework, and the fact that they all perform the same basic function, it can sometimes be difficult to determine the best control to use in a particular situation. Many developers, out of habit one supposes, limit themselves to two controls, the ListBox and the ComboBox, and make their choice based on the available real estate.

But there are more options, and more factors, to be considered. Do the users need to perform in-place editing of the items in the list? If so, a ListBox isn't a good option, even if you have all the room in the world. Are the items strongly ordered? If so, the DomainUpDown is probably a better choice than a ComboBox. We'll examine the particular roles that each of the list controls is best suited to play as we examine their details in the rest of this chapter, but first you need to consider whether you ought to be using a list control at all.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint