Why is the DataGrid MouseDoubleClick event fired when i double click on the scrollbar or on the header?
Is there any way to avoid this and fire the event only when i double clicked inside the datagrid.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Scrollbar and header are part of the grid but do not handle double click, so the event “bubbles” up to the grid.
The inelegant solution is to somewhat find out “what was clicked” by the mean of event source or mouse coordinates.
But you can also do something like that (untested):