diff --git a/blazorbootstrap/Components/Grid/Grid.razor b/blazorbootstrap/Components/Grid/Grid.razor
index f3ceacba9..1b6771be7 100644
--- a/blazorbootstrap/Components/Grid/Grid.razor
+++ b/blazorbootstrap/Components/Grid/Grid.razor
@@ -147,7 +147,7 @@
{
var rowClass = RowClass?.Invoke(item) ?? "";
var detailViewRowId = IdUtility.GetNextId();
-
RowClick(item, args)" @ondblclick="args => RowDoubleClick(item, args)" role="@(AllowRowClick ? "button" : "")">
+
RowClick(item, args)" @ondblclick="args => RowDoubleClick(item, args)" role="@(AllowRowClick ? "button" : "")">
@if (AllowDetailView)
{
diff --git a/blazorbootstrap/Components/Grid/Grid.razor.cs b/blazorbootstrap/Components/Grid/Grid.razor.cs
index df5870e70..91d372216 100644
--- a/blazorbootstrap/Components/Grid/Grid.razor.cs
+++ b/blazorbootstrap/Components/Grid/Grid.razor.cs
@@ -995,6 +995,14 @@ private void SetFilters(IEnumerable filterItems)
[Parameter]
public Func? RowClass { get; set; }
+ ///
+ /// Gets or sets the row key selector.
+ /// usage ex.
+ /// RowKeySelector="context => context.UserId"
+ ///
+ [Parameter]
+ public Func? RowKeySelector { get; set; }
+
///
/// Gets or sets the selected items.
///
|