private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) return; int Pid = Int32.Parse(DataTable.Rows[e.RowIndex].Cells[1].Value.ToString()); using (PlayerEditForm Form = new PlayerEditForm(Pid)) { Form.ShowDialog(); } BuildList(); }