Method wpfBuilder.Columns
Overload
Sets column count and widths of current grid.
public wpfBuilder Columns(params WBGridLength[] widths)
Parameters
widths (WBGridLength[])
Column widths. An argument can be:
|
Returns
Exceptions
InvalidOperationException
Columns() in non-grid panel or after an Add function. |
Remarks
If this function not called, the table has 2 columns like .Columns(0, -1)
.
If there are star-sized columns, should be set width of the grid or of its container. Call wpfBuilder.Width or wpfBuilder.Size or wpfBuilder.WinSize. But if the grid is in a cell of another grid, usually it's better to set column width of that grid to a non-zero value, ie let it be not auto-sized.