Exemplo n.º 1
0
 private void gridControl1_DoubleClick(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         string id = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[0]).ToString();
         //MessageBox.Show(id);
         PRODUCT_GROUP objunit = new PRODUCT_GROUP();
         objunit = new PRODUCT_GROUPController().PRODUCT_GROUP_Get(id);
         frmCapNhatNhomHang frm = new frmCapNhatNhomHang();
         frm.Load_Data(objunit);
         frm.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void barLargeButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         string id = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[0]).ToString();
         //MessageBox.Show(id);
         PRODUCT_GROUP objunit = new PRODUCT_GROUP();
         objunit = new PRODUCT_GROUPController().PRODUCT_GROUP_Get(id);
         frmCapNhatNhomHang frm = new frmCapNhatNhomHang();
         frm.Load_Data(objunit);
         frm.ShowDialog();
     }
 }