Skip to main content

GridColumn.HeaderTemplate Property

Gets or sets a template used to define the column headers visual representation.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public DataTemplate HeaderTemplate { get; set; }

Property Value

Type Description
Xamarin.Forms.DataTemplate

A Xamarin.Forms.DataTemplate object.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

GridControl provides various ways to customize the appearance of its elements. For simple customizations (such as modifying colors, fonts, etc.) use appropriate customizer objects. If you need to completely modify the appearance of a particular grid element, you can define a custom template for it.

The HeaderTemplate property allows you to define a data template for a column header. If you need to define a custom template for column cells, create a TemplateColumn object, assign a custom template to a column’s TemplateColumn.DisplayTemplate property and add this templated column to the GridControl.Columns collection.

For more information on using templates, see How to: Create Grid Columns for Data of Different Types.

See Also