private void btnDSHTD_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmDanhSachHangTrongDon f = new FrmDanhSachHangTrongDon();

            f.MaDonHang = 0;
            f.ShowDialog();
            LoadData();
        }
        private void btnThemHangVaoDon_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                int r = 0;
                r = dgvDonHang1.CurrentCell.RowIndex;
                FrmDanhSachHangTrongDon f = new FrmDanhSachHangTrongDon();
                f.MaDonHang = 0;
                f.MaDonHang = Int32.Parse(dgvDSDH1.Rows[r].Cells[0].Value.ToString());
                f.ShowDialog();
            }
            catch { MessageBox.Show("Chưa chọn đơn hàng!!!"); }


            LoadData();
        }
        private void btnChinhSuaDon_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmDanhSachHangTrongDon f = new FrmDanhSachHangTrongDon();

            try
            {
                int r = dgvDonHang1.CurrentCell.RowIndex;
                f.MaDonHang = Int32.Parse(dgvDonHang1.Rows[r].Cells[0].Value.ToString());

                f.ShowDialog();
            }
            catch
            {
                MessageBox.Show("Chưa chọn đơn hàng. Vui lòng kiểm tra lại");
            }
            CapNhat();
        }