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
Remarks
Defaults to False
.
GroupTemplate
The template for the grouped column.
public RenderFragment<GroupDefinition<T>>? GroupTemplate { get; set; }
Property Value
Grouping
The LINQ definition of the grouping.
public required IGrouping<object?, T> Grouping { get; set; }
Property Value
Indentation
Indents the each Group beyond the first by 48 px.
public bool Indentation { get; set; }
Property Value
InnerGroup
The group definition within this definition.
public GroupDefinition<T>? InnerGroup { get; set; }
Property Value
Level
Gets the nesting level of this group.
public int Level { get; }
Property Value
Selector
The function which selects items for this group.
public Func<T, object> Selector { get; set; }
Property Value
Remarks
Typically used during a LINQ GroupBy()
call to group items.
Title
The title of the grouped column
public string Title { get; set; }