I have a user control that I wrote in WPF to display some data. I want to show this usercontrol in the list, but I also want to provide several column headers (corresponding to some properties in the user cotrol) so that users can sort by the properties contained in usercontrol.
I am not sure if this is the best way.
I currently have a ListBox displaying these user controls, but the ListBox does not have a title, and I cannot figure out how to put multiple titles in the ListBox.
Ideally, I would like something like this:
Header1 Header2 Header3 Header4 [UserControlThatSpansAllFourColumns]
My other thought was to use a DataGrid and somehow get each element to fit multiple columns, but so far I also can't figure it out.
If anyone has any clues, I would welcome them!
wpf datagrid grid listbox
Chris holmes
source share