ItemsView.HtmlTemplate Property
Specifies the default HTML-CSS template used to generate items.
Namespace: DevExpress.XtraGrid.Views.Items
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
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.
See the following topic for more information: ItemsView.
See Also