DataGrid - Select Specific Row

I have a grid that works perfectly. I have another page which allows a user to select information and then navigate the page with the data grid.

How do I automatically select the row that was passed in? I've tried passing the record to the RowSelect method, but this does not work.

Doesn't work:
protected override async Task OnInitializedAsync()
//The box was sent in from the search screen/populated as a parameter.
var box = await BoxService.GetBox(BoxId);

You need to pass a parameter to the page, record Id for example that can be used to find the whole record and set it to a page property. Once you have the record as page property you can bind the DataGrid Value to this property. I suggest you to check some pages created with Radzen templates for more info.

1 Like