I have a seemingly very simple requirement: I want to create a scrollable table/gridbox/gridview with two headers. The table should bind a data set called DataSet
containing a collection of objects with the properties Column1
and Column2
. Furthermore, the body of the table should be vertically scrollable. See the image below for an illustration.
However simple this seems, I cannot manage to do it.
I tried using a ListBox
control with two TextBlocks
on top but this looks ugly (since the headers are not aligned properly and are not part of the table). and I am sure there is a better solution that I just haven't found yet.
Can someone show me how to create a grid like the description above which binds a data set called DataSet
which has Column1
and Column2
and where the body is vertically scrollable?