Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

QuickGrid<TGridItem>.ItemKey Property

Definition

Namespace:
Microsoft.AspNetCore.Components.QuickGrid
Assembly:
Microsoft.AspNetCore.Components.QuickGrid.dll
Package:
Microsoft.AspNetCore.Components.QuickGrid v10.0.0
Package:
Microsoft.AspNetCore.Components.QuickGrid v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components.QuickGrid v8.0.19
Package:
Microsoft.AspNetCore.Components.QuickGrid v9.0.8
Source:
QuickGrid.razor.cs
Source:
QuickGrid.razor.cs
Source:
QuickGrid.razor.cs
Source:
QuickGrid.razor.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Optionally defines a value for @key on each rendered row. Typically this should be used to specify a unique identifier, such as a primary key value, for each data item.

This allows the grid to preserve the association between row elements and data items based on their unique identifiers, even when the TGridItem instances are replaced by new copies (for example, after a new query against the underlying data store).

If not set, the @key will be the TGridItem instance itself.

[Microsoft.AspNetCore.Components.Parameter]
public Func<TGridItem,object> ItemKey { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.ItemKey : Func<'GridItem, obj> with get, set
Public Property ItemKey As Func(Of TGridItem, Object)

Property Value

Func<TGridItem,Object>
Attributes

Applies to


Feedback

Was this page helpful?