private void dgDieuXe_CellClick(object sender, DataGridViewCellEventArgs e) { lbTenTX.Text = dgDieuXe.CurrentRow.Cells[8].Value.ToString(); lbSDT.Text = dgDieuXe.CurrentRow.Cells[9].Value.ToString(); lbTuyenDuong.Text = dgDieuXe.CurrentRow.Cells[6].Value.ToString() + " / " + dgDieuXe.CurrentRow.Cells[7].Value.ToString(); dgDinhVi.DataSource = LichTrinh.HienThi(dgDieuXe.CurrentRow.Cells[0].Value.ToString()); }
private void button2_Click(object sender, EventArgs e) { LichTrinh.Cap_Nhap(dgDieuXe.CurrentRow.Cells[0].Value.ToString(), txtDiaDiem.Text, cbTrangThai.Text, txtGhiChu.Text); dgDinhVi.DataSource = LichTrinh.HienThi(dgDieuXe.CurrentRow.Cells[0].Value.ToString()); }