Home > Net >  Click the right mouse button click the DataGrid how to judge in the WPF is which cell
Click the right mouse button click the DataGrid how to judge in the WPF is which cell

Time:03-03

Click the right mouse button click the DataGrid how to judge in the WPF is which cell

CodePudding user response:

In MouseRightButtonDown click event to set breakpoints, the parameters of the event sender is actually the DataGrid
The DataGrid dg=sender as DataGrid;
Dg. CurrentCell is you click on the cell
  •  Tags:  
  • C#
  • Related