Is there a way to have the DataGridColumn objects autosize or
does anyone have code to autosize a column? I have a DataGrid with
5 or 6 columns, each equally spaced. I know I can set the value of
each column, but that would be a guess on the max size of data in
each column. Thoughts?
You can set percentWidth on your DataGrid. This will make the
entire DataGrid grow whenever its container grows. If you do not
set width on any of the DataGrid columns, then, they will all stay
the same width.