DataGrid height and width

Aug 14, 2009 at 5:42 PM

I don't know how to limit DataGrid height to its content height?

It is possible to limit DataGrid width by calculating sum of all columns width, but it is possible to do it automatically?

Thanks for help for advance!