Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created June 1, 2010 20:16
Show Gist options
  • Save jfromaniello/421417 to your computer and use it in GitHub Desktop.
Save jfromaniello/421417 to your computer and use it in GitHub Desktop.
private void CargarGrilla()
{
try
{
var lstMov = bf.GetMovimientoController().FindAll();
gv.DataSource = lstMov.SelectMany(
m => m.Lineas.Select(ml => new
{
m.idMov,
nomCuenta = m.Cuenta.Nombre,
fecha = m.Fecha,
nomArticulo = ml.Articulo.Nombre,
precio = ml.Precio,
cantidad = ml.Cantidad,
importe = m.Importe
}));
gv.DataBind();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment