private void cargarGrilla() { DataTable _tabla = new DataTable(); _tabla.Columns.Add("id"); _tabla.Columns.Add("nombre"); _tabla.Columns.Add("cantidad"); _tabla.Columns.Add("precio"); _tabla.Columns.Add("tipo"); Producto p = new Producto(); foreach (var item in p.findByProductor(rut)) { _tabla.Rows.Add(new Object[] { item.id, item.nombre, item.cantidad, item.precio, TipoProducto.getByIdStatic(item.tipo_producto).nombre }); } dgv_productos.DataSource = _tabla; dgv_productos.DataBind(); }