Grid Elements that Support Templates

  • 3 minutes to read

The ASPxGridView control provides a set of templates that specify the layout of its elements. These templates are listed in the table below.

Element Template Property Description
Data Cell GridViewTemplates.DataItem Gets or sets a template for displaying data cells.
Data Row GridViewTemplates.DataRow Gets or sets a template for displaying data rows.
Detail Row GridViewTemplates.DetailRow Gets or sets a template for displaying detail rows.
Edit Form GridViewTemplates.EditForm Gets or sets a template for displaying the edit form.
Empty Data Row GridViewTemplates.EmptyDataRow Gets or sets a template for displaying the empty data row.
Filter Cell GridViewTemplates.FilterCell Gets or sets a template for displaying a filter row cell.
Filter Row GridViewTemplates.FilterRow Gets or sets a template for displaying a filter row.
Footer Row GridViewTemplates.FooterRow Gets or sets a template for displaying the footer.
Footer Cell GridViewTemplates.FooterCell Gets or sets a template for displaying footer cells.
Group Footer Cell GridViewTemplates.GroupFooterCell Gets or sets a template for displaying a group footer cell.
Group Footer Row GridViewTemplates.GroupFooterRow Gets or sets a template for displaying a group footer row.
Group Row GridViewTemplates.GroupRow Gets or sets a template for displaying group rows.
Group Row Content GridViewTemplates.GroupRowContent Gets or sets a template for displaying the content of group rows.
Column Header GridViewTemplates.Header Gets or sets a template for displaying column headers.
Column Header Caption GridViewTemplates.HeaderCaption Gets or sets a template for displaying column header captions.
Pager GridViewTemplates.PagerBar Gets or sets a template for displaying the ASPxGridView's pager.
Preview Row GridViewTemplates.PreviewRow Gets or sets a template for displaying preview rows.
Status Bar GridViewTemplates.StatusBar Gets or sets a template for displaying the ASPxGridView's status bar.
Title Panel GridViewTemplates.TitlePanel Gets or sets a template for displaying the title panel.

Columns provide their own templates. This allows you to provide a custom layout for their elements (headers, cells).

Element Template Property Description
Column Header GridViewColumn.HeaderTemplate Gets or sets a template used to display the content of the column's header.
Column Header Caption GridViewColumn.HeaderCaptionTemplate Gets or sets a template for displaying the column header's caption.
Column Layout Item GridViewColumnLayoutItem.Template Gets or sets a template used for displaying the content of the particular column layout item.
Data Cell GridViewDataColumn.DataItemTemplate Gets or sets a template for displaying data cells within the current column.
Edit Cell GridViewDataColumn.EditItemTemplate Gets or sets a template for displaying edit cells which correspond to the current column.
Filter Row GridViewColumn.FilterTemplate Gets or sets a template for displaying the filter row cell.
Footer Cell GridViewColumn.FooterTemplate Gets or sets a template for displaying the column's footer cell.
Group Footer GridViewColumn.GroupFooterTemplate Gets or sets a template for displaying the column's footer cell.
Group Row GridViewDataColumn.GroupRowTemplate Gets or sets a template for displaying group rows.