Exemple #1
0
        private void BindDataGridView()
        {
            UserLevelController  userLevelController  = new UserLevelController();
            UserLevelCollections userLevelCollections = userLevelController.SelectList();

            this.dgvUserLevel.AutoGenerateColumns = false;
            this.dgvUserLevel.DataSource          = userLevelCollections;
        }
Exemple #2
0
        private void UserLevelReport_Load(object sender, EventArgs e)
        {
            UserLevelController Controller = new UserLevelController();

            rpvUserLevel.LocalReport.DataSources.Clear();
            ReportDataSource rds = new ReportDataSource();

            rds.Name  = "UserLevelDataSet_UserLevelDataTable";
            rds.Value = Controller.SelectList();
            this.rpvUserLevel.LocalReport.DataSources.Add(rds);

            rpvUserLevel.ZoomMode = ZoomMode.Percent;
            this.rpvUserLevel.RefreshReport();
        }
        private void BindUserLevel()
        {
            UserLevelController  userLevelController  = new UserLevelController();
            UserLevelCollections userLevelCollections = userLevelController.SelectList();

            UserLevelInfo info = new UserLevelInfo();

            info.UserLevel   = " - Select One - ";
            info.UserLevelID = null;
            userLevelCollections.Insert(0, info);

            this.cboUserLevel.DisplayMember = "UserLevel";
            this.cboUserLevel.ValueMember   = "UserLevelID";
            this.cboUserLevel.DataSource    = userLevelCollections;
            this.cboUserLevel.SelectedIndex = 0;
        }