Creating a multi column listbox

2 posts, 0 answers
  1. Dwayne
    Dwayne avatar
    1 posts
    Member since:
    Jan 2018

    Posted 06 Jan Link to this post

    WPF, Caliburn.micro, mvvm.

    My ViewModel have a BindableCollection<String> that is loaded with from 1 to 1000 string values.

    In my view, I have a listbox that is bound to the collection. The list box shows all the data, but in one colunm with a scroll bar.  What I want is the data in three columns and scroll bars if the data can't fit.

     

    Can anyone point me in the right direction?

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    761 posts

    Posted 10 Jan Link to this post

    Hello Dwayne,

    Based on your description, may I suggest that you use the RadGridView control instead of a RadListBox? It will allow you to split your data in different data columns and also provides the functionality of filtering, sorting and grouping this data if required. Of course, you can also disable these features if you do not wish to use them.

    You can have a look at the available demos in the WPF Controls Samples and SDK Samples Browser to get a better grasp of RadGridView's capabilities. Do let me know if you find it suitable for your particular scenario.

    Regards,
    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top