UD-DataGrid expand width to maximum

Product: PowerShell Universal
Version: 3.5.5

Hey Guys,

i am trying to display my data in a dashboard which works in general.

I am using a DataGrid and get at least an output like this:

image

My Question is: Is it possible to expand the width of each column to its maximun (needed) size?

To make it look like this:

image

Or is it a better option to work with tables instead of datagrids?

Kind regards,
Alex

While not exactly what you’re after, you should be able to use flex to have it expand to a percentage of the grid.

@{
   flex = '.5'
   field = 'StartTime'
}