/// <summary>
 /// Customize group descriptors created by the C1FlexGridGroupPanel.
 /// </summary>
 void _groupPanel_PropertyGroupCreated(object sender, PropertyGroupCreatedEventArgs e)
 {
     var pgd = e.PropertyGroupDescription;
     switch (pgd.PropertyName)
     {
         case "Introduced":
             pgd.Converter = new DateTimeGroupConverter();
             break;
         case "Price":
             pgd.Converter = new AmountGroupConverter(1000);
             break;
         case "Cost":
             pgd.Converter = new AmountGroupConverter(300);
             break;
     }
 }
 private PropertyGroupDescription CreateGroupDescription(string propName, Type dataType)
 {
     PropertyGroupCreatedEventArgs propertyGroupCreatedEventArgs = new PropertyGroupCreatedEventArgs(propName, dataType);
     OnPropertyGroupCreated(propertyGroupCreatedEventArgs);
     return propertyGroupCreatedEventArgs.PropertyGroupDescription;
 }
 protected virtual void OnPropertyGroupCreated(PropertyGroupCreatedEventArgs e)
 {
     if (PropertyGroupCreated != null)
     {
         PropertyGroupCreated(this, e);
     }
 }