Back to Devexpress

Grid Elements that Support Templates

aspnet-3739-components-grid-view-concepts-templates-grid-elements-that-support-templates.md

latest6.5 KB
Original Source

Grid Elements that Support Templates

  • Nov 08, 2021
  • 2 minutes to read

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

ElementTemplate PropertyDescription
Data CellGridViewTemplates.DataItemSpecifies a template to display data cells.
Data RowGridViewTemplates.DataRowSpecifies a template to display data rows.
Detail RowGridViewTemplates.DetailRowSpecifies a template to display detail rows.
Edit FormGridViewTemplates.EditFormSpecifies a template to display an edit form.
Empty Data RowGridViewTemplates.EmptyDataRowSpecifies a template to display an empty data row.
Filter CellGridViewTemplates.FilterCellSpecifies a template to display a filter row cell.
Filter RowGridViewTemplates.FilterRowSpecifies a template to display a filter row.
Footer RowGridViewTemplates.FooterRowSpecifies a template to display the footer.
Footer CellGridViewTemplates.FooterCellSpecifies a template to display footer cells.
Group Footer CellGridViewTemplates.GroupFooterCellSpecifies a template to display a group footer cell.
Group Footer RowGridViewTemplates.GroupFooterRowSpecifies a template to display a group footer row.
Group RowGridViewTemplates.GroupRowSpecifies a template to display group rows.
Group Row ContentGridViewTemplates.GroupRowContentSpecifies a template to display the group row content.
Column HeaderGridViewTemplates.HeaderSpecifies a template to display column headers.
Column Header CaptionGridViewTemplates.HeaderCaptionSpecifies a template to display column header captions.
PagerGridViewTemplates.PagerBarSpecifies a template to display the pager.
Preview RowGridViewTemplates.PreviewRowSpecifies a template to display preview rows.
Status BarGridViewTemplates.StatusBarSpecifies a template to display the status bar.
Title PanelGridViewTemplates.TitlePanelSpecifies a template to display the title panel.

Columns have their own templates that allow you to customize the layout of elements (headers, cells).

ElementTemplate PropertyDescription
Column HeaderGridViewColumn.HeaderTemplateSpecifies a template to display the column’s header content.
Column Header CaptionGridViewColumn.HeaderCaptionTemplateSpecifies a template to display the column header caption.
Column Layout ItemGridViewColumnLayoutItem.TemplateGets or sets a template used to display the content of a specific column layout item.
Data CellGridViewDataColumn.DataItemTemplateSpecifies a template to display the column’s data cells.
Edit CellGridViewDataColumn.EditItemTemplateSpecifies a template to display the column’s edit cell.
Filter RowGridViewColumn.FilterTemplateSpecifies a template to display the column’s filter row cell.
Footer CellGridViewColumn.FooterTemplateSpecifies a template to display the column’s footer cell.
Group FooterGridViewColumn.GroupFooterTemplateSpecifies a template to display the column’s group footer cells.
Group RowGridViewDataColumn.GroupRowTemplateGets or sets a template for displaying group rows.