예제 #1
0
        private UserControl InitOrganization(ref String TagControl, ref string Title)
        {
            UserControl usControl;

            usControl = new UCOrganizationAll(this.mDataSet);
            //(usControl as UcGroupDirectory).errorProvider1.DataSource = this.mDataSet;

            (usControl as UCOrganizationAll).gridViewOrgns.FocusedRowHandle = DevExpress.XtraGrid.GridControl.AutoFilterRowHandle;
            (usControl as UCOrganizationAll).gridViewOrgns.FocusedColumn    = (usControl as UCOrganizationAll).gridViewOrgns.Columns["Name"];
            (usControl as UCOrganizationAll).Tag  = Title;
            (usControl as UCOrganizationAll).Dock = DockStyle.Fill;

            return(usControl);
        }
예제 #2
0
파일: MainForm.cs 프로젝트: vpjulia/Salvia
        private UserControl InitOrganization(ref String TagControl, ref string Title)
        {
            UserControl usControl;
                         usControl = new UCOrganizationAll(this.mDataSet);
                        //(usControl as UcGroupDirectory).errorProvider1.DataSource = this.mDataSet;

                         (usControl as UCOrganizationAll).gridViewOrgns.FocusedRowHandle = DevExpress.XtraGrid.GridControl.AutoFilterRowHandle;
                         (usControl as UCOrganizationAll).gridViewOrgns.FocusedColumn = (usControl as UCOrganizationAll).gridViewOrgns.Columns["Name"];
                         (usControl as UCOrganizationAll).Tag = Title;
                        (usControl as UCOrganizationAll).Dock = DockStyle.Fill;

                        return usControl;
        }