title: how to get the row index in a datagrid wpf according to the button of the row pressed
body: <p>i have a datagrid in wpf with an edit button with each row. How do i get the rows index that is in focus i.e. the row whose edit button is clicked?</p>