private void dataGridCategoria_CellContentClick(object sender, DataGridViewCellEventArgs e) { //(dgvDados.SelectedRows[0].Cells[0].Value); try { Int32 codigo = Convert.ToInt32(dataGridCategoria.SelectedRows[0].Cells.SyncRoot); Categoria p = tabelaCategoria [codigo]; Frm_categoria form = new Frm_categoria(); form.Tag = p; form.ShowDialog(); CarregarGridDoBD(""); } catch (Exception ex) { MessageBox.Show("ERRO AO SELECIONAR CADASTRO: " + ex.Message); } }
private void categoriasToolStripMenuItem_Click(object sender, EventArgs e) { Frm_categoria frm = new Frm_categoria(); frm.Show(); }
private void btnCategoria_Click(object sender, EventArgs e) { Frm_categoria frm = new Frm_categoria(); frm.Show(); }