コード例 #1
0
 /// <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;
     }
 }
コード例 #2
0
 private PropertyGroupDescription CreateGroupDescription(string propName, Type dataType)
 {
     PropertyGroupCreatedEventArgs propertyGroupCreatedEventArgs = new PropertyGroupCreatedEventArgs(propName, dataType);
     OnPropertyGroupCreated(propertyGroupCreatedEventArgs);
     return propertyGroupCreatedEventArgs.PropertyGroupDescription;
 }
コード例 #3
0
 protected virtual void OnPropertyGroupCreated(PropertyGroupCreatedEventArgs e)
 {
     if (PropertyGroupCreated != null)
     {
         PropertyGroupCreated(this, e);
     }
 }