QuickGrid<TGridItem>.ItemKey Property

Definition

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