Datagrid with form and row selection

I am using in my datagrid SelectionMode and @bind-Value so I know how to select and deselect record in my datagrid but I made new page as "DataGrid with Form" and I did not find SelectionMode and obviously there is no @bind-Value. Somehow it is confusing to the user if it is form in Edit or Add mode

How to clear row selection in case the user clicks on the "Add" button?

You can add await grid0.SelectRow(null); in your Add button Click event handler.

1 Like