/// <summary> /// Binds the content channel items grid. /// </summary> private void BindContentChannelItemsGrid() { ContentChannelCache contentChannel = this.GetContentChannel(); if (contentChannel != null) { IQueryable <ContentChannelItem> contentChannelItemsQuery = new ContentChannelItemService(new RockContext()).Queryable().Where(a => a.ContentChannelId == contentChannel.Id).OrderBy(a => a.Order).ThenBy(a => a.Title); gContentChannelItems.DataSource = contentChannelItemsQuery.AsNoTracking().ToList(); gContentChannelItems.DataBind(); } }