Search code examples
silverlightdatagrid

How to make Silverlight DataGrid wide enough to show entire RowDetailsTemplate


I am creating the DataGrid and RowDetailsTemplate in code, so I don't have XAML to share. Sorry about that.

As you can see the RowDetailsTemplate is truncated. Any idea how to make the grid wide enough to show the whole thing?

alt text

Thanks in advance for any assistance.


Solution

  • It could be that the DataGrid's parent does not have HorizontalAlignment set to "Stretch".