Skip to main content
All docs
V25.1
  • ItemsView.HtmlTemplate Property

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

    Namespace: DevExpress.XtraGrid.Views.Items

    Assembly: DevExpress.XtraGrid.v25.1.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