For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDDataGridColumn

Creates a new data grid column.

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.

-Field

The field of the row data that the column represents.

-Flex

The flex value used to set the column width.

-HeaderAlign

The alignment of the column header cell. Possible values are 'left', 'center' and 'right'.

-HeaderName

The name of the column header.

-MaxWidth

The maximum width of the column.

-MinWidth

The minimum width of the column.

-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.

Last updated

Was this helpful?