Back to Devexpress

ItemsView.HtmlTemplate Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-items-dot-itemsview.md

latest2.1 KB
Original Source

ItemsView.HtmlTemplate Property

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

Namespace : DevExpress.XtraGrid.Views.Items

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Layout")]
public HtmlTemplate HtmlTemplate { get; }
vb
<DXCategory("Layout")>
Public ReadOnly Property HtmlTemplate As HtmlTemplate

Property Value

TypeDescription
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.

See the following topic for more information: ItemsView.

See Also

QueryItemTemplate

CustomizeItem

ItemsView Class

ItemsView Members

DevExpress.XtraGrid.Views.Items Namespace