private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dgv.CurrentCell == null) { BathClass.printErrorMsg("未选择行"); return; } var memberId = dgv.CurrentRow.Cells[0].Value.ToString(); var form = new MemberItemChart(memberId); form.ShowDialog(); }