I have a custom context menu in a datagrid. The context menu only works on when the selected record is still a textblock (non clicked) and on the first part of the record.