public KPMasterDetailField(KPFormBaseControl formControl, KPFormItemMasterDetail formItem, KPFormMasterDetailModel masterDetailConfig)
        {
            FormControl = formControl;
            FormItem = formItem;

            MasterDetailConfig = masterDetailConfig;
            EnsureChildControls();
        }
 public KPGridDetailControl(KPFormMasterDetailModel masterDetailConfig)
     : base()
 {
     MasterDetailConfig = masterDetailConfig;
     EnableDelete = false;
     EnableNew = false;
     EnableEdit = false;
     EnableNewDetail = true;
     EnableEditDetail = true;
     EnableDeleteDetail = true;
     TypeEntityNamespace = MasterDetailConfig.TypeEntityDetailNamespace;
     RowNum = MasterDetailConfig.RowNum;
     PrimaryKey = MasterDetailConfig.PrimaryKeyDetail;
     PropertyCompanyEntity = MasterDetailConfig.PropertyCompanyEntity;
     Width = MasterDetailConfig.WidthGrid;
     Height = MasterDetailConfig.HeightGrid;
     WidthForm = MasterDetailConfig.WidthFormDetail;
     HeightForm = MasterDetailConfig.HeightFormDetail;
     PageFormUrl = MasterDetailConfig.PageFormUrl;
 }
 public KPMasterDetailGridControl(KPFormBaseControl formControl, KPFormMasterDetailModel formMasterDetailConfig)
 {
     FormControl = formControl;
     MasterDetailConfig = formMasterDetailConfig;
     EnsureChildControls();
 }