I have a datagrid populated by a Linq query. When the focused row in the datagrid changes I need to set a variable equal to one of the properties in that object.
I t
If you know what you are doing and are not afraid of getting runtime errors when your code changes, you could cast your row data as dynamic
:
var data = view.GetRow(rowHandle) as dynamic;
int clientId = data.ClientID;
string clientName = data.ClientName;
int jobs = data.Jobs
No Compile-time verification. But it should work nicely.