去看一下Cell的Popup事件,删除对应代码
e.ContextMenu.Items("DockSetting").Visible= (CurrentTable.IsChild OrElse CurrentTable.IsParent)e.ContextMenu.Items("Filter").Enabled = (CurrentTable.Current IsNot Nothing)e.ContextMenu.Items("Load").Visible = (CurrentTable.IsRelation = False)