I am programatically creating group by mode by:
DGrid.FieldLayouts[0].SortedFields.Add(
));
This works great, but I can't figure out how to put a button on the resulting default header that shows the field value and the number of items in its group. Can you please suggest how to do that? Thanks!
Hello,
If I understood your requirement correctly, you want to have a button in the GroupRecord showing the grouped field and the number of the nested records ? If that is so, you would have to retemplate the GroupByRecordPresenter. You can see/find the default templates/styles for the GroupByRecordPresenter in the xaml files that we ship in the DefaultStyles directory in the Infragistics folder and use them as basis for your own style.