I have two silverlight (2 or 3) datagrids (from the July 2009 Silverlight toolkit) positioned one on top of the other. The top datagrid holds values, the bottom datagrid holds summary values (e.g. total). I want their respective columns to be aligned at all times, even as the user changes the column header widths, column order, and as the user scrolls horizontally. How can this be done?
I'm using two datagrids because I want the total values in the lower datagrid to be visible at all times, as the user scrolls the contents of the top datagrid vertically.
I've tried to access the horizontal scrollbar of the datagrid using GetVisualDescendants(), but this returns no elements. How can this be done? I'm guessing it can be done because Silverlight Spy shows the visual hierarchy.