1) Are you sure you do not want to use DataGrid.RowDetailsTemplate to achieve this? You can set DataGrid,RowDetailsVisibility="VisibleWhenSelected" and you can put any control in the RowDetailsTemplate.
2) If you do not want to use method 1. You can try to catch DataGrid.MouseLeftButtonDown event.
private void theGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Point p = e.GetPosition(null); // here is where you want to open the popup.
DataGrid g = sender as DataGrid;
g.SelectedItem // this is the Data for that selected row.
}
Software Engineer
Aprimo, Inc
Please remember to mark the replies as answers if they answered your question