Iam new to wpf and am struggling to position my headers probably, All the data is going into each header but I want it so that the data is one per header.(I looked all over google and cant find a solution idk even if using headers is the right thing to do even)
see in the second screenshot(above last post) I have position and Team in the main list-view but all the columns are getting group with each header(position,team). I want it where only one column is with one header.
Here is a mock up in excel, See on the left is whats happening to my headers where all the data is getting put under one header then the next header the information is repeated, on the right is what iam looking for where one header is for one column.
I know I explain that not the best but thats the only way i can think of that makes sense
I suggest not using ListView. It is old, inflexible and confusing to use.
Use DataGrid instead. You do not show much of your code so I am not sure how to provide a sample that is more relevant than the following but hopefully it is enough. You can set the ItemsSource in code as in the following: