Table of Contents

Class GroupDefinition<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents the grouping information for columns in a MudDataGrid<T>.

public class GroupDefinition<T>

Type Parameters

T
Inheritance
GroupDefinition<T>
Inherited Members
Extension Methods

Constructors

GroupDefinition()

public GroupDefinition()

Properties

Expanded

Expands this group.

public bool Expanded { get; set; }

Property Value

bool

Remarks

Defaults to False.

GroupTemplate

The template for the grouped column.

public RenderFragment<GroupDefinition<T>>? GroupTemplate { get; set; }

Property Value

RenderFragment<GroupDefinition<T>>

Grouping

The LINQ definition of the grouping.

public required IGrouping<object?, T> Grouping { get; set; }

Property Value

IGrouping<object, T>

Indentation

Indents the each Group beyond the first by 48 px.

public bool Indentation { get; set; }

Property Value

bool

InnerGroup

The group definition within this definition.

public GroupDefinition<T>? InnerGroup { get; set; }

Property Value

GroupDefinition<T>

Level

Gets the nesting level of this group.

public int Level { get; }

Property Value

int

Selector

The function which selects items for this group.

public Func<T, object> Selector { get; set; }

Property Value

Func<T, object>

Remarks

Typically used during a LINQ GroupBy() call to group items.

Title

The title of the grouped column

public string Title { get; set; }

Property Value

string