I have a datagrid in WPF in which I can drag and drop stuff in it. When I drop my stuff, I would like to know which row it is dropped in, not just the grid itself.
is there a way to know this and if yes how ?
Thanks
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.
have a look here: WPF drag and drop to DataGrid
In general you should check the target item when you are either dragging over (to enable/disable operations) or dropping (to finalize/execute the operation), for example: