Hello,
I have CellWidth set to a certain value, and the grid itself is inside a uniform grid. I have the max width at 700 and minimum width set to 100, and ideally what I'd like to do is have the grid conform to the bounds of its parent uniform grid. However, it is overflowing the bounds of the uniform grid (namely setting all columns to 700). Is there any property that will bound the grid to the width of its parent while giving the cells a max and min width? I'm trying to make the first column take up as much room as possible and the rest of the columns as little as possible. The grid is generated completely in code, by the way. Thanks for the help.
-Matt
Hi Matt,
You can get finer control of the grid we generate for the cell area by setting the DataRecordCellAreaGridTemplate off FieldLayoutSettings. This is an ItemsPanelTemplate that needs to contain a single Grid element. You can include ColumnDefinitions and/or RowDefinitions in it that we will use as a template for each cell area grid. This can include '*' sizing. Note: if you use '*' sizing then the XamDataGrid needs to have its width specified either explicitly or by its container.
I hope this helps.