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

ItemsView.HtmlTemplate Property

Specifies the default HTML-CSS template used to generate items.

Namespace: DevExpress.XtraGrid.Views.Items

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Description
HtmlTemplate

An HTML-CSS template used to generate items.

#Remarks

The ItemsView generates its items from HTML-CSS templates. Use the HtmlTemplate property to specify the default template.

The HtmlTemplate object exposes two nested properties for this purpose:

  • HtmlTemplate.Template — Specifies HTML code that defines the layout of UI elements.
  • HtmlTemplate.Styles — Specifies CSS styles applied to the UI elements.

At design time, you can use the Html Template Editor to specify HTML & CSS code.

ItemsView - Html template editor

See the following topic for more information: ItemsView.

See Also