New-UDDataGridColumn
Synopsis
Creates a new data grid column.
Syntax
New-UDDataGridColumn [[-CellClassName] <String>] [[-Align] <String>] [[-ColumnSpan] <Int32>] [[-Description] <String>] [-DisableColumnMenu] [-DisableExport] [-DisableReorder] [-Editable] [[-Field] <String>] [-Filterable] [[-Flex] <Single>] [-Groupable] [[-HeaderAlign] <String>] [[-HeaderName] <String>] [-Hideable] [-HideSortIcons] [[-MaxWidth] <Int32>] [[-MinWidth] <Int32>] [-Pinnable] [-Resizable] [-Sortable] [[-SortingOrder] <String[]>] [[-Type] <String>] [[-Width] <Int32>] [[-Render] <ScriptBlock>] [[-ValueOptions] <String[]>] [-Hide] [<CommonParameters>]Description
Creates a new data grid column.
Parameters
-CellClassName
CSS class name to be applied on cell element.
Required? false
Position? 1
Default value
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Align
The alignment of the cell data. Possible values are 'left', 'center' and 'right'.
-ColumnSpan
The number of columns that the column should span.
-Description
The description of the column that appears when hovering the header cell.
-DisableColumnMenu
If true, the column menu is disabled.
-DisableExport
If true, the column is not exported.
-DisableReorder
If true, the column cannot be reordered.
-Editable
If true, the column is editable.
-Field
The field of the row data that the column represents.
-Filterable
If true, the column is filterable.
-Flex
The flex value used to set the column width.
-Groupable
If true, the column is groupable.
-HeaderAlign
The alignment of the column header cell. Possible values are 'left', 'center' and 'right'.
-HeaderName
The name of the column header.
-Hideable
If true, the column is hideable.
-HideSortIcons
If true, the sort icons are hidden.
-MaxWidth
The maximum width of the column.
-MinWidth
The minimum width of the column.
-Pinnable
If true, the column is pinnable.
-Resizable
If true, the column is resizable.
-Sortable
If true, the column is sortable.
-SortingOrder <String[]>
The sorting order of the column. Possible values are 'asc', 'desc' and null.
-Type
The type of the column. Possible values are 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect';
-Width
The width of the column.
-Render
A script block that is used to render the column. The script block is passed the row data as $EventData.
-ValueOptions <String[]>
An array of options for the column filter when the filter is set to singleSelect.
-Hide
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Last updated
Was this helpful?