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

New-UDDataGrid

Displays data in a table-style grid.

Synopsis

Displays data in a table-style grid.

Syntax

New-UDDataGrid [[-Id] <String>] [[-Columns] <Hashtable[]>] [[-LoadRows] <Endpoint>] [[-Height] <String>] [[-AutoHeight] <Boolean>] [-AutoPageSize] [-CheckboxSelection] [-CheckboxSelectionVisibleOnly] [[-ColumnBuffer] <Int32>] [[-ColumnThreshold] <Int32>] [[-Density] <String>] [[-PageSize] <Int32>] [[-RowsPerPageOptions] <Int32[]>] [-ShowPagination] [[-OnSelectionChange] <Endpoint>] [[-Language] <String>] [[-LoadDetailContent] <Endpoint>] [[-DetailHeight] <String>] [[-OnEdit] <Endpoint>] [[-OnExport] <Endpoint>] [-ShowQuickFilter] [[-DefaultSortColumn] <String>] [[-DefaultSortDirection] <String>] [-DisableRowSelectionOnClick] [-HideExport] [[-RowHeight] <Int32>] [[-IdentityColumn] <String>] [-StripedRows] [-HeaderFilters] [-AutoSizeColumns] [[-ExportOptions] <String[]>] [<CommonParameters>]

Description

Displays data in a table-style grid. Provides support for sorting, paging, and filtering of large data sets.

Parameters

-Id

The ID of this data grid.

Required?                    false
Position?                    1
Default value                [Guid]::NewGuid()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Columns <Hashtable[]>

An array of column to display in this table.

-LoadRows

The script block that loads the data for this grid.

-Height

The static height for this data grid.

-AutoHeight

Whether to calculate the height of this data grid.

-ColumnBuffer

Parameter description

-ColumnThreshold

-Density

The visible density of the table.

-PageSize

The default page size.

-RowsPerPageOptions <Int32[]>

An array of page sizes.

-OnSelectionChange

-Language

The language to use for text in the data grid.

-LoadDetailContent

A script block that is called when rows are expanded. $EventData will contain the row's data.

-DetailHeight

The static height of the detail pane.

-OnEdit

A script block that is called when the row is edited. $EventData will include the edited data. Return an object to update the data grid row.

-OnExport

A script block that is called when data is exported.

-DefaultSortColumn

The default column to sort by.

-DefaultSortDirection

The default sort direction.

-RowHeight

The height of the rows.

-IdentityColumn

The identity column for the data grid.

-ExportOptions <String[]>

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?