Check my reply in your other thread. All you need to do is to add desired item to selected to the variable bond to Value.
Many thanks for your reply.
Sorry about the other thread, there was a typo there.
The clause in the DataGrid Html reads: @bind-Value=@_UiSelected.
That being said, I remain a lpuzzled. Please find an attempt at re-formulation below:
In my application, I have implemented a feature where an original row within a Radzen DataGrid contains a "duplicate" button. When this button is clicked, it triggers the insertion of a new row that serves as a clone of the original row. The desired behavior is to set the newly created row as the selected row in the grid.
However, I've observed that the system tends to reselect the original row after the duplication process, which is not the intended behavior. While I've found a workaround to address this issue, it would be more preferable if there were a way to prevent this automatic reselection of the original row.
Another related concern arises when a row is deleted within the DataGrid. Regardless of my attempts to programmatically select a different row after deletion, it appears that no row remains selected.
I'm seeking guidance or solutions to overcome these challenges and ensure that the selected row behavior aligns with the intended user experience.
Got you. I see where my error is.
Thank you so much.