private void dGridMain_DoubleClick(object sender, EventArgs e) { if (dGridMain.CurrentRowIndex < 0) { return; } var rps = new RmProduce(rds.RmProduce.Rows[dGridMain.CurrentRowIndex]["cCode"].ToString()); rps.ShowDialog(); Close(); }
private void dGridMain_DoubleClick(object sender, EventArgs e) { if (dGridMain.CurrentRowIndex < 0) return; var rps = new RmProduce(rds.RmProduce.Rows[dGridMain.CurrentRowIndex]["cCode"].ToString()); rps.ShowDialog(); Close(); }