Thank you for your patience. Last week was a busy one, and since the developers are supporting this forum out of their "spare" time for the sake of the WPF community ( since the DataGrid for WPF is provided freely without support), answering was not immediately possible.
As for your question about setting the Grid vertical... Here are the few basic steps you would need to do to make this work:
- Replace the DataRow's ControlTemplate with one where the cells are stacked Vertically instead of horizontally (done by applying an implicit style on DataRow).
- Replace the ColumnManagerRow's ControlTemplate with one where the cells are stacked Vertically instead of horizontally (done by applying an implicit style on ColumnManagerRow).
- Replace the InsertionRow's ControlTemplate with one where the cells are stacked Vertically instead of horizontally (done by applying an implicit style on InsertionRow).
- Replace the DataGridControl's ItemsPanel with an ItemsPanelTemplate that layout its children Horizontally instead of Vertically ( you could set the Orientation property on the Xceed.Wpf.DataGrid.VirtualizingStackPanel ).
- Replace the TableViewScrollViewer's ControlTemplate with one where the FixedHeadersHostPanel is located on the Left side and the FixedFootersHostPanel on the right size, and where they are layouting their children Horizontally.
In order to achieve this, you can start from the Styles and Templates provided along with the package ( Xceed DataGrid for WPF 1.1\Themes folder).
Marc Laroche
Software Developer
Xceed Software Inc.
I don’t suffer from insanity, I enjoy every minute of it. - Unknown