Exemplo n.º 1
0
        public static IDataControl[] AssociateDataControlGroup(Control container, IDisplayManager dm, string gridName, string[] gridColumnNames)
        {
            if (gridColumnNames.Length != 2)
            {
                throw new ArgumentException("gridColumnNames", "Now only support 2 controls!");
            }

            IDataControl[]   dcs     = GetDataControls(dm, gridName, gridColumnNames, false);
            DataControlGroup dcGroup = new DataControlGroup();

            dcGroup.SetInnerControls(dcs[0] as Control, dcs[1] as Control);

            return(dcs);
        }
        public static IDataControl[] AssociateDataControlGroup(Control container, IDisplayManager dm, string gridName, string[] gridColumnNames)
        {
            if (gridColumnNames.Length != 2)
            {
                throw new ArgumentException("gridColumnNames", "Now only support 2 controls!");
            }

            IDataControl[] dcs = GetDataControls(dm, gridName, gridColumnNames, false);
            DataControlGroup dcGroup = new DataControlGroup();
            dcGroup.SetInnerControls(dcs[0] as Control, dcs[1] as Control);

            return dcs;
        }