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
4032
Configute ListView like multi column listbox
posted

I'm loocking for the best control for a pick list of items. One item has two attributes (item-code, item-text). I can do it with a multi column listbox of the standard windows forms control.

To have a nicer look (headers, images), I tried the UltraListView control. If users resizes the control the columns should be rearranged to avoid scrollbars as possible (like multicolumn listbox). The ListView control shows this behavior in view type "list", but not in "detailed".

How setup the ListView control for my needs? If not possible, any suggestions for another control?

Thanks for your help.

Regards. Markus

  • 48586
    posted

    Hello ,

     

    When UltraListView is in Details view, actually it display a grid with at least one Main column (unique for the grid) and other columns, which could be used to represent a different information, depends on the custom customer needs. That is why when UltraListView is in Details view , the component shouldn’t rearrange its items in more than one main columns. As you said UltraListView cover your requirements when it is in List view mode, why you want then to use it in Details mode, maybe I am missing something from your scenario?

     

    Please let me know if you have any  further questions.

    • 4032
      Offline posted in reply to Hristo Goshev

      Hello,

      I have to display at least two properties of my items: one column for the item-code, one column for the item-text. Thats the reason I'm using Details mode.

      For that, I'm looking what solutions I have to solve these requirements. One solution is the  Windows Forms listbox in multi column mode. The ListView Control can have headers and images and looks nicer. This is why I'm try to configure the ListView control to achieve the same behaviour.

      If ListView Details mode can not be configured as needed, you mybe has any other suggestions? There are lots of controls with lots of capabilities and, maybe, I'm missing something.

      Regards. Markus

      • 48586
        posted in reply to Markus Accola

        Hello,

         

        You could use TooltippText to present your item-code and your item-text to be in the display text or other way is to use formatted text like String.Format(“item-text: {0, 10}; item-code:{1, 10}”, item-text, item-code) for text of UltraListView items in order to simulate two columns.You could use code like:

        for(int i=0; i < 10; i++)
                    {
                        UltraListViewItem item = new UltraListViewItem(string.Format("{0,10}  {1,10} ", i, i),null,null);
                        ultraListView1.Items.Add(item);
                       
                    }


         

        Please let me know if you have any further questions.

        • 4032
          Offline posted in reply to Hristo Goshev

          Hello,

          I'm still not satisfied with my solution using the windows forms listbox control. I should display also images for the items and I don't like these owner draw overhead. Tooltips, like you suggest as solutions, seems not to be a solutions to me (users just see tooltips when mouse over the itme).

          If list view control is in ListViewStyle = List I can display a text right of the image. Is there a way to format these text using tabs at a well defined position (like the old list box control)?

          If this is not possible, do you know if your ListViewControl will provide full Listbox functionality in the future?

          Regards

          Markus

          • 48586
            posted in reply to Markus Accola

            Hello ,

            Could you please post a picture of the desired look, which you want to achieve with UltraListView.

            I am waiting for your details.

        x An error occurred. Please try again or contact your administrator.
        x An error occurred. Please try again or contact your administrator.
        x An error occurred. Please try again or contact your administrator.