I need to show multiple columns in ComboBoxField. For that I am trying to set datatemplate for comboBoxField.
"How to show a grid with column names".
I have gone through the following link, Where we don't have column names.
The link that you have followed is for xamGrid not for XamDataGrid.
Could you confirm if you are using xamGrid or XamDataGrid?
In case you are using XamDataGrid you may find the link below useful in understanding xamMultiColumnComboEditor, which allows multiple columns inside the combo and has appearance similar to the grid:
I am attaching a small sample, which demonstrates how the xamMultiColumnComboEditor could be set to a field. The data source of the combo is Observable collection, however instead of using ComboBoxField, TemplateField should be used since xamMultiColumnComboEditor doesn’t inherit from ValueEditor base class. The TempleteField allows you to provide both a DisplayTemplate and EditTemplate which can contain any control you want. If you add XamMultiColumnComboEditor to the field as DisplayTemplete you don’t need to set the edit template since an input control is present in the display template and edit mode will never be entered on that cell so the edit template will never display.
To learn more about TemplateField please visit the link below:
Please test the sample on your side and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me along with steps to reproduce.
Please let me know if you have any questions.
Regards, Ivan Kitanov
Hi Can you please share - InfragisticsWPF.DataManager & InfragisticsWPF.Controls.Editors.XamComboEditor dlls of version 18.1.20181.82
Hello Yugandhar ,
Once you have installed your version of Infragistics controls they should be visible to you in the “Add Reference” dialog in Visual studio. The DLLs are also located under this directory:
C:\Program Files (x86)\Infragistics\”Your version”\WPF\CLR4.0\Bin
How to apply filter on combo box based on selected item on another combo box
In order to achieve this the SelectionChanged event of the ComboBox needs to be handled. Then a custom item filter for the XamMultiColumnComboEditor needs to set based on what is selected inside the ComboBox, FilterMode can be set (either on the main column or on all columns) as well as the CustomItemFilter comparison condition.
To learn more about item filtering inside XamMultiColumnComboEditor please visit the link below, which describes the configuration of custom item filters in more details as well as providing sample code, which demonstrates how custom item filters can be configured.
Let me know if you have any questions.