update logic to disable all datagrid context menu items when the layer for the record is off