I have DataGridView and DataTable with my “players”.
DataTable dt = Extensions.ToDataTable<Player>(PlayerList);
Grid.DataSource = dt;
I want to access Player objet in doubleclick event when user clicks any cell in my grid.
How to do it?
Add a handler for the CellContentDoubleClick event of the DataGridView, then access the DataBoundItem of the row: