private void editLottTemplateEntry_Click(object sender, EventArgs e) { string LootTemplate_ID = (string)this.lootTemplateDataGrid.SelectedRows[0].Cells["lootTemplateIDDataGridViewTextBoxColumn"].Value; editLootTemplate editLootTemplateForm = new editLootTemplate(this, LootTemplate_ID); DialogResult result = editLootTemplateForm.ShowDialog(); if (result == DialogResult.OK) { getLootTemplatesOfItem(); } }