internal void SetManuallyDisabled(PropertyEnumerator propEnum, object containerInstance, string memberName) { if (containerInstance != null) { _canBeDisabledManually = true; _enabledVariable = new PropertyValueIndirect(_grid, null, containerInstance, TypeDescriptor.GetProperties(containerInstance)[memberName], null); _enabledVariable.Grid = ParentGrid; ParentGrid.EnableProperty(propEnum, (GetManuallyDisabledVariable() && !ParentGrid.Grid.IsAncestorDisabled(propEnum))); // _enabled = (GetManuallyDisabledVariable() && !ParentGrid.Grid.IsAncestorDisabled(propEnum)); // if (_grid != null) // _grid.Grid.Invalidate(); } }