Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
540
Emulating a simple winform listbox
posted

Hi

I have a regular windows listbox to which I add items in a single column format as below;

 MyListBox.Items.Clear()
 MyListBox.Items.Add(x)

I am also able to delete items as below;

 MyListBox.Items.Remove(MyListBox.SelectedItem)

My question is how do I achieve the same effect ie a single column list and add and delete items from it in the equivalent Infragistics winform control?

Thanks

Regards

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    You can use the UltraListView control with the following property settings:

    UltraListView.View = UltraListViewStyle.List;
    UltraListView.ViewSettingsList.MultiColumn = false;

    The syntax for item removal is similar, although there is no SelectedItem property because the control supports multiple selection (see UltraListView.SelectedItems collection).

Children
No Data