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