Example #1
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     dataGridView1.CurrentCell = dataGridView1.SelectedCells[0];
     if (dataGridView1.CurrentCell.OwningColumn == dataGridView1.Columns[1] ||
         dataGridView1.CurrentCell.OwningColumn == dataGridView1.Columns[2] ||
         dataGridView1.CurrentCell.OwningColumn == dataGridView1.Columns[3] ||
         dataGridView1.CurrentCell.OwningColumn == dataGridView1.Columns[4] ||
         dataGridView1.CurrentCell.OwningColumn == dataGridView1.Columns[5])
     {
         splitContainer1.Panel1.Enabled = false;
         QuanLy.LoadSanBay(cbbMaSBDi);
         QuanLy.LoadSanBay(cbbMaSBDen);
         QuanLy.LoadHHK(cbbHHK);
         panel1.Location = new Point(splitContainer1.Panel2.Size.Width - panel1.Size.Width - 18, 0);
         panel1.Visible  = true;
     }
     else
     {
         dataGridView1.BeginEdit(true);
     }
 }
Example #2
0
 private void cbbNoiDen_DropDown(object sender, EventArgs e)
 {
     QuanLy.LoadSanBay(cbbNoiDen);
 }