I want to display data in the following manner. Is there any way to do it.
I have a collection of object of class 'Criterias' which has properties- Condition, DataElement, Parameter, Operator, Value, Units. I have already grouped the rows using Condition property. So my grid looks like below :
Thanks in Advance
Jack
Hi,
Your second image with the ComboBox in the groupheader looks like you want to eliminated the expansion button, added the ComboBox and customize the text in the header. Do you need to be able to edit the values in the ComboBox? What values did you want to include the items in the ComboBox?
Let me add to my suggestion that you will probably need to re-template the GroupByRecordPresenter and handle the data provided in the comboBox that you are adding.
This documentation will walk you thru identifying controls and their properties that can be modified thru their styles. It also talks about custom control templates and the recommended approach.
http://help.infragistics.com/NetAdvantage/WPF/2011.1/CLR4.0/?page=WPF_Working_with_xamDataGrid_xamDataCarousel_xamDataPresenter_Styling_Points.html
I believe you will want to copy and paste the generic style of the GroupByRecordPresenter element into the resources of the grid and then making any changes, so that you retain the default functionality.
You can find the GroupByRecordPresenter style in the DefaultStyles directory of the Infragistics folder, where we ship all of our generic xaml files for all the controls. Look for the DataPresenterGeneric_Express.xaml file in the ...WPF\DefaultStyles\DataPresenter folder.
Keep in mind that the ExpansionIndicator is normally used to expand and show the items within the group.
I hadn’t heard back from you. I was wondering if you had further questions.
If so, please feel free to contact me.