private void btnAdd() { Frm¶ÅÀֺIJĵµ°¸Edit f = new Frm¶ÅÀֺIJĵµ°¸Edit(); f.ShowDialog(); btnSel(); }
private void btnEdit() { int iRow = 0; if (gridView1.FocusedRowHandle > 0) { iRow = gridView1.FocusedRowHandle; } string scInvCode = gridView1.GetRowCellValue(iRow, gridColcInvCode).ToString().Trim(); Frm¶ÅÀֺIJĵµ°¸Edit f = new Frm¶ÅÀֺIJĵµ°¸Edit(scInvCode); f.ShowDialog(); btnSel(); }
private void gridView1_DoubleClick(object sender, EventArgs e) { try { int iRow = 0; if (gridView1.FocusedRowHandle > 0) { iRow = gridView1.FocusedRowHandle; } string scInvCode = gridView1.GetRowCellValue(iRow, gridColcInvCode).ToString().Trim(); if (scInvCode != "") { Frm¶ÅÀֺIJĵµ°¸Edit f = new Frm¶ÅÀֺIJĵµ°¸Edit(scInvCode); f.ShowDialog(); btnSel(); } } catch { } }