Index: src/Deltares.DSoilModel.Forms/DSoilModelContext.cs =================================================================== diff -u -r6 -r72 --- src/Deltares.DSoilModel.Forms/DSoilModelContext.cs (.../DSoilModelContext.cs) (revision 6) +++ src/Deltares.DSoilModel.Forms/DSoilModelContext.cs (.../DSoilModelContext.cs) (revision 72) @@ -4,6 +4,7 @@ using Deltares.Geotechnics; using Deltares.Geotechnics.ConePenetrationTest; using Deltares.Standard.Attributes; +using Deltares.Standard.Forms.DExpress; using Deltares.Standard.Reflection; using Deltares.Standard.Reflection.Enumerator; @@ -227,6 +228,23 @@ public override bool? IsVisible(object source, string member) { + if (source is BaseControlBinding || source is GridViewControl) + { + // Make sure popup menu item for adaption of units is disabled in gridview. + if (member == "EditUnitCommand") + { + return false; + } + } + if (source is MainForm) + { + // hide units command from tools menu + if (member == "SelectUnits") + { + return false; + } + } + if (source is SosSoilLayer1D && member == ((SosSoilLayer1D)source).GetMemberName(x => x.BottomLevel)) { return false;