Hello! I have a unique situation that I need some expert advice on! I have a field layout where 1 column doesn't apply to certain records (lets say Type1). This is fine (value will be empty); however, when I group on this column, I would prefer to have Type1 items no show an empty GroupByRecord. Is there a way to programmatically remove this GroupByRecord, and place its children under its parent?GroupByRecord1.ChildRecords is read only, so I'm unable to remove or add to this collection. Is there another way to achieve what I want? I've attached a screenshot. (Also, no need to worry about counts, as I override this elsewhere).
Hello Daniel,
Thank you for your post. I have been looking into it and can say that you are right that the GroupByRecord’s ChildRecords collection is read-only, so I can suggest you either use external grouping, which is described here:
http://help.infragistics.com/Help/NetAdvantage/WPF/2013.1/CLR4.0/html/xamDataGrid_External_Grouping.html
or use custom GroupByEvaluator, which is explained here:
http://help.infragistics.com/NetAdvantage/WPF/2013.1/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v13.1~Infragistics.Windows.DataPresenter.IGroupByEvaluator.html
Hope this helps you.