private void GenerateAgndaViewCaption()
        {
            string currentMonth = SelectedInterval.Start.ToString("MMMM-yyyy");
            int    rowCount     = GridControlAppointments.VisibleRowCount;

            if (rowCount == 0)
            {
                GridControlAppointments.Caption = currentMonth + " (no data)";
            }
            else if (ShowResources)
            {
                object resourceCaption = GridControlResources.GetCardValuesByKeyValue(SelectedResourceId, "AgendaResourceName");
                if (resourceCaption == null)
                {
                    GridControlAppointments.Caption = currentMonth;
                }
                else
                {
                    GridControlAppointments.Caption = currentMonth + " (" + resourceCaption + ")";
                }
            }
            else
            {
                GridControlAppointments.Caption = currentMonth;
            }
        }
 void InitializeGridControlResources()
 {
     GridControlResources.DataSource = AgendaViewDataGenerator.GenerateResourcesCollection(OwnerScheduler.Storage);
     GridControlResources.DataBind();
 }