Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@using GridMvc.Html;
@model IEnumerable<Item>
<div class="row">
<div class="col-lg-12">
<i class="fa fa-spotify fa-5x"></i>
@Html.Grid(Model).Columns(columns =>
{
columns.Add(c => c.track.artists)
.Titled("Artists")
.RenderValueAs(x => string.Join(",", x.track.artists.Select(y => y.name)));
columns.Add(c => c.track.name).Titled("Track");
});
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.