Fixed datagrid context menu handling to better handle taps.