Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
746
How do I put a button on the row header in group by mode?
posted

I am programatically creating group by mode by:

DGrid.FieldLayouts[0].SortedFields.Add(

 

new Infragistics.Windows.DataPresenter.FieldSortDescription("TagName", System.ComponentModel.ListSortDirection.Ascending, true

));

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!

Parents
No Data
Reply
  • 69686
    posted

    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.

Children
No Data