private void bunifuImageButton1_Click(object sender, EventArgs e) { string id = txtId.Text; EditarProveedor(id); FrmMenuProveedores frm = (FrmMenuProveedores)Owner; frm.GetAll(""); this.Close(); }
private void FrmModificarSinBoton_Load(object sender, EventArgs e) { FrmMenuProveedores frm = (FrmMenuProveedores)Owner; txtId.Text = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[0].Value); txtNombreProveedor.Text = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[1].Value); txtNroTelef.Text = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[2].Value); txtRuc.Text = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[3].Value); txtDireccion.Text = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[4].Value); }