> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/da/powershell-kommandoer/new-udtablecolumn.md).

# New-UDTableColumn

New-UDTableColumn definerer en enkelt kolonne, herunder dens gengivelse, sortering og filtreringsfunktionsmåde, for en New-UDTable i PowerShell Universal.

### Synopsis

Definerer en tabelkolonne.

### Syntaks

```powershell
New-UDTableColumn [[-Id] <String>] [-Property] <String> [[-Title] <String>] [[-OnRender] <ScriptBlock>] [-ShowSort] [-ShowFilter] [[-FilterType] <String>] [[-Style] <Hashtable>] [[-Width] <Int32>] [[-MinWidth] <Int32>] [-IncludeInSearch] [-IncludeInExport] [-DefaultSortColumn] [[-Align] <String>] [-Truncate] [[-SortType] <String>] [-Hidden] [[-Options] <String[]>] [[-Header] <ScriptBlock>] [<CommonParameters>]
```

### Beskrivelse

Definerer en tabelkolonne. Brug denne cmdlet sammen med egenskaben -Column på New-UDTable. Tabelkolonner kan bruges til at styre mange aspekter af kolonnerne i en tabel.

### Parametre

#### -Id

Id for komponenten. Standardværdien er et tilfældigt GUID.

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

#### -Property

Den egenskab, der skal vælges fra dataene.

```
Required?                    true
Position?                    2
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Title

Titlen på den kolonne, der skal vises øverst i tabellen.

```
Required?                    false
Position?                    3
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -OnRender

```
Required?                    false
Position?                    4
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -ShowSort

Om denne kolonne understøtter sortering.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -ShowFilter

Om denne kolonne understøtter filtrering.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -FilterType

Den type filter, der skal bruges med denne kolonne. Gyldige værdier er "text", "select", "fuzzy", "slider", "range", "date", "number", 'autocomplete', 'multiselect'

```
Required?                    false
Position?                    5
Default value                text
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Style

En hashtable med stilattributter, der skal anvendes på kolonnen.

```
Required?                    false
Position?                    6
Default value                @{ }
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Width

Bredden af denne kolonne i pixel.

```
Required?                    false
Position?                    7
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -MinWidth

```
Required?                    false
Position?                    8
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -IncludeInSearch

Om denne kolonne skal medtages i søgningen.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -IncludeInExport

Om denne kolonne skal medtages i eksporten.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -DefaultSortColumn

Sætter denne kolonne som standardsorteringskolonnen.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Align

Justeringen af kolonnen. Understøttede værdier er 'center', 'inherit', 'justify', 'left', 'right'.

```
Required?                    false
Position?                    9
Default value                inherit
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Truncate

Om teksten i denne kolonne skal afkortes. En -Width er påkrævet for at bruge afkortning.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -SortType

Om denne kolonne skal sorteres som en streng eller som datetime.

```
Required?                    false
Position?                    10
Default value                alphanumeric
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Hidden

Medtager en kolonne i tabellen, men viser den ikke. Dette er nyttigt for kolonner, der bruges til filtrering og eksport, men som ikke er beregnet til at blive vist i tabellen.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Options \<String\[]>

De valgmuligheder, der skal bruges til et select-filter.

```
Required?                    false
Position?                    11
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Header

Scriptblok, der gengiver brugerdefineret overskriftsindhold for denne kolonne i stedet for standardoverskriften i tabellen. Dens output tildeles kolonnens egenskab `customHeader`.

```
Required?                    false
Position?                    12
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### Fælles parametre

Denne cmdlet understøtter de fælles parametre: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable og OutVariable. Se [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216) for at få flere oplysninger.

### Output

### Eksempler

#### Eksempel 1

Se New-UDTable for eksempler.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell-universal/da/powershell-kommandoer/new-udtablecolumn.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
