Difficulty to do custom grouping on one column values

Originally Posted 18 October 2016, 6:32 pm EST

  • Originally Posted 18 October 2016, 6:32 pm EST

    Hello,
    I am trying to do custom grouping on one column which has say three possible values.
    Also the data is binded runtime (not using the datasource at designer).

    Any help is appreciated.
    Thanks in advance
  • Reply

    Hi Kinjal,

    For applying custom grouping to a column, you need to set 'GroupInfo.Interval' for the grouped column to 'GroupIntervalEnum.Custom' and then inside the GroupInterval event, set e.value for the customized ranges. You can optionally set 'GroupInfo.ColumnVisible' for the grouped column to true. Attached is a sample application that performs custom grouping for "Fees" column.

    Please refer the following blog article for more information on advanced grouping functionalities:
    http://our.componentone.com/2006/01/11/advanced-column-grouping-in-true-dbgrid-for-winforms/

    Thanks,
    Pragati
    2016/10/prj_CustomColumnGrouping.zip
  • Reply

    Hey Pragati,

    Thanks for your help.
    But the problem is after grouping my other functionalities doesn't work like copying a row or deleting it, fetching cell styles which works fine on ungrouped data .
    So is there any solution to it?
  • Marked as Answer

    Reply

    Hi Kinjal,

    This query has been answered in your support case 214365.

    Thanks,
    Pragati
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels