コード例 #1
0
 private void gridControl1_DoubleClick(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         string id = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[1]).ToString();
         //MessageBox.Show(id);
         PROVIDER objcustomer = new PROVIDER();
         objcustomer = new PROVIDERController().PROVIDER_Get(id);
         frmCapNhatNhaPhanPhoi frm = new frmCapNhatNhaPhanPhoi();
         frm.Load_Data(objcustomer);
         frm.ShowDialog();
     }
 }
コード例 #2
0
 private void barLargeButtonItem9_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         string id = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[1]).ToString();
         //MessageBox.Show(id);
         PROVIDER objcustomer = new PROVIDER();
         objcustomer = new PROVIDERController().PROVIDER_Get(id);
         frmCapNhatNhaPhanPhoi frm = new frmCapNhatNhaPhanPhoi();
         frm.Load_Data(objcustomer);
         frm.ShowDialog();
     }
 }