Hello,
I need to show multiple columns in ComboBoxField. For that I am trying to set datatemplate for comboBoxField.
<ig:ComboBoxField>
<ig:Field.Settings>
------------------------
<DataTemplate>
"How to show a grid with column names".
</DataTemplate>
</ig:Field.Settings>
</ig:ComboBoxField>
I have gone through the following link, Where we don't have column names.
https://ko.infragistics.com/help/wpf/xamgrid-comboboxcolumn-column
Hello Yugandhar,
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:
https://ko.infragistics.com/help/wpf/xammulticolumncomboeditor
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:
https://ko.infragistics.com/help/wpf/xamdatagrid-configuring-template-field
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
MultiComboInXamDataGrid.zip
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