Reputation: 788
I want to move my header locations from the top(columns) and the left(rows) to the right(rows) and bottom(columns). I can only find information for aliments for the content within the headers, not the alignment of the headers themselves.
see photo below for example of this...
I know it might be tricky to then add items accordingly to the datagridview, but my data needs to be organized this way as opposed to headers on the top and left. (if using a datagridview is too hard, is there another object i can use?)
As always, THANKS!
Upvotes: 1
Views: 1231
Reputation: 1718
The RightToLeft property of the DataGridView solves the headers left alignment.
For the bottom alignment, I am afraid that there is no simple solution.
Upvotes: 1
Reputation: 3509
Afaik, this is not possible in Winforms. I don't know how it is in WPF and I don't know any other out-of-the-box solutions.
My proposal:
You could cheat by adding a DGV on the right and one on the bottom. They only contain the headers. Then you need to 'connect' the scrolling events of the DGVs.
You got an idea what I'm meaning?
Not the nicest solution and for sure a bit tricky, but probably the only one.
Upvotes: 1