What is the Expand property on a data grid column for?

I couldn’t find the documentation about the Expand property on a DataGrid column.

If Expand is not set, then the columns without Width will expand, while the columns with Width will not.

If Expand is set, then the columns without Width will still expand, while the columns with Width will expand, but their size seems to be affected by the Width in a way that I don’t understand.

Hi @stefano.menci,

The Expand property is used to create a column that can expand, but that will never get smaller than the width specified. The column will be in ‘flex’ mode, but with a fixed minimum width.

Thanks for pointing out that this isn’t covered in the docs, I’ll get that updated :slight_smile:

2 Likes