Habanero.Faces.Base.EditableGridControlMapper.InternalUpdateControlValueFromBo C# (CSharp) Method

InternalUpdateControlValueFromBo() protected method

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject
protected InternalUpdateControlValueFromBo ( ) : void
return void
        protected override void InternalUpdateControlValueFromBo()
        {
            if (_businessObject != null)
            {
                var relationship = _businessObject.Relationships[PropertyName];
                _editableGrid.Initialise(relationship.RelatedObjectClassDef);
                _editableGrid.BusinessObjectCollection =_businessObject.Relationships.GetRelatedCollection(PropertyName);
            } else
            {
                _editableGrid.BusinessObjectCollection = null;
            }
        }
    }