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
300
How to show xamdatagird in ComboBoxField
posted

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://www.infragistics.com/help/wpf/xamgrid-comboboxcolumn-column

Parents
  • 1660
    Offline posted

    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://www.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://www.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

Reply Children