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
1655
Dropdown column in WPF Infragistic Grid
posted

Hi,

My requirement is to add a combobox in WPF Infragistic Grid (xamdatagrid) column.  Could you please provide me an example for same.

Best Regards,

Ritesh.

Parents
No Data
Reply
  • 69686
    posted

    Hello Ritesh,

    You can use a XamComboEditor inside a cell, which is out of the box feature, enabled by setting the EditorStyle or EditorType property of the Field's Settings. However, if it is a requirement for your to insert a ComboBox, then you would have to retemplate the CellValuePresenter. You can see an example of a similar thing (putting an image inside a cell) in the XamFeatureBrowser samples under XamDataGrid - Themes and Custom Styles - Embedded Image in Cells. All you need to do is change the Image to ComboBox and set its ItemsSource property.

Children