private void btnAdd() { Frm杜乐耗材供应商Edit f = new Frm杜乐耗材供应商Edit(); f.ShowDialog(); btnSel(); }
private void btnEdit() { int iRow = 0; if (gridView1.FocusedRowHandle > 0) { iRow = gridView1.FocusedRowHandle; } string scVenCode = gridView1.GetRowCellValue(iRow, gridColcVenCode).ToString().Trim(); Frm杜乐耗材供应商Edit f = new Frm杜乐耗材供应商Edit(scVenCode); f.ShowDialog(); btnSel(); }
private void gridView1_DoubleClick(object sender, EventArgs e) { try { int iRow = 0; if (gridView1.FocusedRowHandle > 0) { iRow = gridView1.FocusedRowHandle; } string scVenCode = gridView1.GetRowCellValue(iRow, gridColcVenCode).ToString().Trim(); if (scVenCode != "") { Frm杜乐耗材供应商Edit f = new Frm杜乐耗材供应商Edit(scVenCode); f.ShowDialog(); btnSel(); } } catch { } }