/// <summary>
/// Binds the grid.
/// </summary>
private void BindGrid()
{
var htmlContentService = new HtmlContentService();
var content = htmlContentService.GetContent( this.BlockId, EntityValue() );
var versions = content.Select( v =>
new
{
v.Id,
v.Version,
VersionText = "Version " + v.Version.ToString(),
ModifiedDateTime = "(" + v.LastModifiedDateTime.ToElapsedString() + ")",
ModifiedByPerson = v.LastModifiedPerson,
Approved = v.IsApproved,
ApprovedByPerson = v.ApprovedByPerson,
v.StartDateTime,
v.ExpireDateTime
} ).ToList();
gVersions.DataSource = versions;
gVersions.GridRebind += gVersions_GridRebind;
gVersions.DataBind();
}