Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemComboBox.HtmlTemplates Property

Stores HTML and CSS-based templates used to render combo box items.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Layout")]
public HtmlTemplateCollection HtmlTemplates { get; }

#Property Value

Type Description
HtmlTemplateCollection

A collection of HTML and CSS-based templates used to render combo box items.

#Remarks

Combo box items can be rendered from HTML-CSS templates. Use the HtmlTemplates collection to add HTML and CSS-based templates. The first element in this collection becomes the default item template.

You can click the ellipsis button for the HtmlTemplates property to invoke the HTML template editor and create a template:

ComboBox - Html Templates - Designer

You can create multiple templates in the HtmlTemplates collection. In this case, you can handle the RepositoryItemComboBox.CustomItemTemplate event to apply different templates to different items.

See Also