Selecting a DataGrid row, or not

Hi,

I have a page names Opportunities where opportunities can be defined as records (DataGrid with forms). I also have a pipeline page. When double-clicking on a row of the pipeline, a dialog window (called ThisOppp) pops up and show data & specific calculations. This works fine.

In this same dialog box, I have a button which when clicked opens the Opportunities page in another Dialog window. That works too but the one thing I cannot achieve is to have the right row selected.
In terms of data, I use a number Dialog parameters from the pipeline to ThisOpp including the opportunity id which I guess I could reuse one way or another.

What probably adds some complexity is that I can reach the Opportunities directly (in this case, using result.defaultorfirst is fine) or via the dialog process where I need the id.

Thank you

Fred

Hi @FredK_Trashmail,

You want to select DataGrid row initially? You can use @bind-Value with a data item that should be selected.

Thank you Enchev,

My coding ability is recent, unstructured, based on examples and was acquired using Radzen. So very very fresh.

I could not find forum topics or else on this @bind-value. Can you be more explicit or point me to some docs.

Thank you

Fred

The master DataGrid in this demo is using exactly @bind-Value:

Great. Thank you so much