in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

ListBoxControl: why is SelectedItems so limited?

Last post 10/22/2007 2:47 AM by Holger Persch [DX-Squad]. 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 10/21/2007 6:27 PM

    • Paul S
    • Not Ranked
    • Joined on 10/21/2007
    • Posts 4

    ListBoxControl: why is SelectedItems so limited?

     In ListBoxControl, SelectedItems has all of the collection methods private. You can't create any other list from it. There is no CopyTo, etc. Why is this?

    Filed under:
  • 10/22/2007 2:47 AM In reply to

    Re: ListBoxControl: why is SelectedItems so limited?

    Hello Paul,

    The ListBoxControl.SelectedItems property returns an instance of the SelectedItemCollection class. The SelectedItemCollection class is build upon the ICollection interface and explicitly implements the ICollection.CopyTo(Array array, int index) method.

    You can use it like this: ((ICollection)listBoxControl1.SelectedItems).CopyTo(...);

    Hope this helps,
    Holger

    Holger Persch - [DX-Squad]
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED