private void EditSB_Click(object sender, EventArgs e) { CategoryEdit rn = new CategoryEdit(Convert.ToInt32(DataGV.SelectedRows[0].Cells[0].FormattedValue)); rn.ShowDialog(); FillGrid(); }