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); PRODUCT objproduct = new PRODUCT(); objproduct = new PRODUCTController().PRODUCT_Get(id); frmCapNhatHoangHoa_DichVu frm = new frmCapNhatHoangHoa_DichVu(); frm.Load_Data(objproduct); frm.ShowDialog(); } }
private void barLargeButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (gridView1.FocusedRowHandle >= 0) { string id = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[1]).ToString(); //MessageBox.Show(id); PRODUCT objproduct = new PRODUCT(); objproduct = new PRODUCTController().PRODUCT_Get(id); frmCapNhatHoangHoa_DichVu frm = new frmCapNhatHoangHoa_DichVu(); frm.Load_Data(objproduct); frm.ShowDialog(); } }