Grid Elements that Support Templates
- 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.
Element | Template Property | Description |
---|---|---|
Data Cell | GridViewTemplates.DataItem | Specifies a template to display data cells. |
Data Row | GridViewTemplates.DataRow | Specifies a template to display data rows. |
Detail Row | GridViewTemplates.DetailRow | Specifies a template to display detail rows. |
Edit Form | GridViewTemplates.EditForm | Specifies a template to display an edit form. |
Empty Data Row | GridViewTemplates.EmptyDataRow | Specifies a template to display an empty data row. |
Filter Cell | GridViewTemplates.FilterCell | Specifies a template to display a filter row cell. |
Filter Row | GridViewTemplates.FilterRow | Specifies a template to display a filter row. |
Footer Row | GridViewTemplates.FooterRow | Specifies a template to display the footer. |
Footer Cell | GridViewTemplates.FooterCell | Specifies a template to display footer cells. |
Group Footer Cell | GridViewTemplates.GroupFooterCell | Specifies a template to display a group footer cell. |
Group Footer Row | GridViewTemplates.GroupFooterRow | Specifies a template to display a group footer row. |
Group Row | GridViewTemplates.GroupRow | Specifies a template to display group rows. |
Group Row Content | GridViewTemplates.GroupRowContent | Specifies a template to display the group row content. |
Column Header | GridViewTemplates.Header | Specifies a template to display column headers. |
Column Header Caption | GridViewTemplates.HeaderCaption | Specifies a template to display column header captions. |
Pager | GridViewTemplates.PagerBar | Specifies a template to display the pager. |
Preview Row | GridViewTemplates.PreviewRow | Specifies a template to display preview rows. |
Status Bar | GridViewTemplates.StatusBar | Specifies a template to display the status bar. |
Title Panel | GridViewTemplates.TitlePanel | Specifies a template to display the title panel. |
Columns have their own templates that allow you to customize the layout of elements (headers, cells).
Element | Template Property | Description |
---|---|---|
Column Header | GridViewColumn.HeaderTemplate | Specifies a template to display the column’s header content. |
Column Header Caption | GridViewColumn.HeaderCaptionTemplate | Specifies a template to display the column header caption. |
Column Layout Item | GridViewColumnLayoutItem.Template | Gets or sets a template used to display the content of a specific column layout item. |
Data Cell | GridViewDataColumn.DataItemTemplate | Specifies a template to display the column’s data cells. |
Edit Cell | GridViewDataColumn.EditItemTemplate | Specifies a template to display the column’s edit cell. |
Filter Row | GridViewColumn.FilterTemplate | Specifies a template to display the column’s filter row cell. |
Footer Cell | GridViewColumn.FooterTemplate | Specifies a template to display the column’s footer cell. |
Group Footer | GridViewColumn.GroupFooterTemplate | Specifies a template to display the column’s group footer cells. |
Group Row | GridViewDataColumn.GroupRowTemplate | Gets or sets a template for displaying group rows. |