Prevent DataGrid from sizing larger than its rows

Jan 22, 2010 at 12:32 AM

I'd like to have my DataGrid set its MaxHeight so that it won't grow bigger than all the rows.  I tried binding to the DataGridRowPresenter's ActualHeight, but that is growing with the grid.  At this point, I'm thinking I need to derive from DataGrid and monitor the sizes of the visible DataGridRows.  Is there any simpler option I'm missing?