private void button2_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count != 0) { CrearProveedor crearProveedor = new CrearProveedor(); crearProveedor.id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value); crearProveedor.ShowDialog(); } }
private void button1_Click(object sender, EventArgs e) { CrearProveedor crearProveedor = new CrearProveedor(); crearProveedor.ShowDialog(); }