Example #1
0
        private void frmSalas_Load(object sender, EventArgs e)
        {
            Settooltip();
            dgv_Salas.ClearSelection();
            dgv_Salas.DataSource = metSala.GrillaSalas();
            dgv_Salas.Columns["SAL_ID"].Visible = false;

            this.dgv_Salas.Columns["NOMBRE_SALA"].DefaultCellStyle.Alignment   = DataGridViewContentAlignment.MiddleLeft;
            this.dgv_Salas.Columns["TURNO"].DefaultCellStyle.Alignment         = DataGridViewContentAlignment.MiddleLeft;
            this.dgv_Salas.Columns["RANGO"].DefaultCellStyle.Alignment         = DataGridViewContentAlignment.MiddleLeft;
            this.dgv_Salas.Columns["CUPO_TOTAL"].DefaultCellStyle.Alignment    = DataGridViewContentAlignment.MiddleRight;
            this.dgv_Salas.Columns["CUPOS_ACTIVOS"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
            this.dgv_Salas.Columns["VACANTES"].DefaultCellStyle.Alignment      = DataGridViewContentAlignment.MiddleRight;


            DataTable dt = metSala.BuscarSala();

            foreach (DataRow row in dt.Rows)
            {
                txtGS_Buscar.AutoCompleteCustomSource.Add(row[0].ToString());
            }
            //-


            btnGS_Editar.IconColor   = Color.Gray;
            btnGS_Editar.ForeColor   = Color.Gray;
            btnGS_Eliminar.IconColor = Color.Gray;
            btnGS_Eliminar.ForeColor = Color.Gray;
        }
Example #2
0
        private void frmSalas_Load(object sender, EventArgs e)
        {
            dgv_Salas.ClearSelection();
            dgv_Salas.DataSource = metSala.GrillaSalas();
            dgv_Salas.Columns["SAL_ID"].Visible = false;

            //--
            DataTable dt = metSala.BuscarSala();

            foreach (DataRow row in dt.Rows)
            {
                txtGS_Buscar.AutoCompleteCustomSource.Add(row[0].ToString());
            }
            //-


            btnGS_Editar.IconColor   = Color.Gray;
            btnGS_Editar.ForeColor   = Color.Gray;
            btnGS_Eliminar.IconColor = Color.Gray;
            btnGS_Eliminar.ForeColor = Color.Gray;
        }