private void btnAgregar_Click(object sender, EventArgs e)
        {
            FormArticulo formAgregar = new FormArticulo();

            formAgregar.ShowDialog();
            cargarGrilla();
        }
 private void btnDetalle_Click(object sender, EventArgs e)
 {
     try
     {
         Articulo     nuevo   = (Articulo)dgvArticulos.CurrentRow.DataBoundItem;
         FormArticulo detalle = new FormArticulo("Detalle de Artículo", nuevo);
         detalle.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
        private void btnModificar_Click_1(object sender, EventArgs e)
        {
            Articulo     seleccionado = (Articulo)dgvArticulos.CurrentRow.DataBoundItem;
            FormArticulo modificar    = new FormArticulo(seleccionado);

            try
            {
                modificar.ShowDialog();
                cargarGrilla();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }