/// <summary>
 /// Binds the event attributes grid.
 /// </summary>
 private void BindEventAttributesGrid()
 {
     gEventAttributes.DataSource = EventAttributesState
                                   .OrderBy(a => a.Order)
                                   .ThenBy(a => a.Name)
                                   .ToList();
     gEventAttributes.DataBind();
 }
 /// <summary>
 /// Binds the event attributes grid.
 /// </summary>
 private void BindEventAttributesGrid()
 {
     gEventAttributes.DataSource = EventAttributesState
                                   .OrderBy(a => a.Order)
                                   .ThenBy(a => a.Name)
                                   .Select(a => new
     {
         a.Id,
         a.Guid,
         a.Name,
         a.Description,
         FieldType = FieldTypeCache.GetName(a.FieldTypeId),
         a.IsRequired,
         a.IsGridColumn,
         a.AllowSearch
     })
                                   .ToList();
     gEventAttributes.DataBind();
 }