I want to get the clicked cell of a DataGrid
at the MouseDown
event. So far I haven't been successful.
I tried
dg.CurrentCell
- contains the previous clicked celldg.GetChildAt(...)
- doesn't work because the cells are not listed as children of the DataGrid
msdn
site, and dozen links on simple google search?Mouse.MouseDown
?MouseDown
-event...DataGridView
is a lot more enhanced thanDataGrid
, maybe that's also why there isn't many help aboutDataGrid
in forums or on SODataGridView.HitTest
exists it could come to your mind thatDataGrid.HitTest
is worth looking up, but for anybody searching for the title plus-datagridview -wpf
(to get results forDataGrid
) the question might be helpful