public AddEditDeletePhieuThu(GridView gridview, bool isadd, string phieu)
        {
            InitializeComponent();

            Gridview = gridview;
            Mact     = phieu;
            isAdd    = isadd;
            stt      = Gridview.GetDataRow(Gridview.FocusedRowHandle)["Stt"].ToString();
            //if (isAdd) this.Text = "Thêm mới";
            //else this.Text = "Chỉnh sửa";
            E10CTVBTTableAdapter1.FillByStt(ewondataset1.E10CTVBT, int.Parse(Gridview.GetDataRow(Gridview.FocusedRowHandle)["Stt"].ToString()));
            E10CTVBTTableAdapter2.FillByStt(ewondataset2.E10CTVBT, int.Parse(Gridview.GetDataRow(Gridview.FocusedRowHandle)["Stt"].ToString()));


            // This line of code is generated by Data Source Configuration Wizard
            //if (!isAdd) //!isNew  is Edit
            //{


            //}
            //gridView1.FocusedRowChanged += GridView1_FocusedRowChanged;
            txtMahd.Text     = phieu;
            txtManv.Text     = Gridview.GetDataRow(Gridview.FocusedRowHandle)["Ma_Nvu"].ToString();
            txtDiaChi.Text   = Gridview.GetDataRow(Gridview.FocusedRowHandle)["Dia_Chi"].ToString();
            txtNgayct.Text   = Gridview.GetDataRow(Gridview.FocusedRowHandle)["Ngay_Ct"].ToString();
            txtOngba.Text    = Gridview.GetDataRow(Gridview.FocusedRowHandle)["Ong_Ba"].ToString();
            txtDienGiai.Text = Gridview.GetDataRow(Gridview.FocusedRowHandle)["Dien_Giai"].ToString();
        }
 private void tabbedControlGroup1_SelectedPageChanged_1(object sender, DevExpress.XtraLayout.LayoutTabPageChangedEventArgs e)
 {
     E10CTVBTTableAdapter1.FillByStt(ewondataset1.E10CTVBT, int.Parse(stt));
     E10CTVBTTableAdapter2.FillByStt(ewondataset2.E10CTVBT, int.Parse(stt));
     txtTienhang.Text = gridView1.Columns["Tien_Nt"].SummaryItem.SummaryValue.ToString();
 }