I'm using Visual Studio 2022, WPF, EF Core and C#.
I have a DataGrid that is working fine.
I select a line and I would like to put the columns of the selected line in a Grid on the same page each column value have to be put in a TextBox.
I have tried several codes found on the Web but none of these is working for me.
// 2dn attempt provide row but no access to defined column
DataGrid dataGrid = (DataGrid)sender;
var selected_row = dataGrid.SelectedItem;
TxBxUserCode1.Text = selected_row.ToString();
Most of the cases the selected_row is null. In the above example I have page.DbModel.Entity only.
Could someone send me some usefull links or example?