[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
  Prerequisites
 [Expand]Getting Started
 [Expand]Controls
 [Expand]Themes and Color Schemes
  Localization
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Core
  [Expand]DevExpress.Data
  [Expand]DevExpress.Data.Filtering
  [Expand]DevExpress.Mvvm
  [Expand]DevExpress.Mvvm.UI
  [Expand]DevExpress.UI.Xaml
  [Expand]DevExpress.UI.Xaml.Charts
  [Expand]DevExpress.UI.Xaml.Controls
  [Expand]DevExpress.UI.Xaml.Controls.Internal.Pdf
  [Expand]DevExpress.UI.Xaml.Editors
  [Expand]DevExpress.UI.Xaml.Editors.Native
  [Expand]DevExpress.UI.Xaml.Gauges
  [Collapse]DevExpress.UI.Xaml.Grid
   [Expand]AddingNewEventArgs Class
    AutoFilterCondition Enumeration
   [Expand]ColumnBase Class
   [Expand]ColumnCollection Class
    ColumnFilterMode Enumeration
   [Expand]CustomColumnSortEventArgs Class
    CustomColumnSortEventHandler Delegate
   [Expand]DataControlBase Class
    ExceptionMode Enumeration
    FilterPopupMode Enumeration
    FindMode Enumeration
   [Expand]GridCell Class
   [Expand]GridCheckBoxColumn Class
   [Expand]GridColumnBase Class
   [Expand]GridColumnCollection Class
   [Expand]GridColumnCommands Class
   [Expand]GridColumnDataEventArgs Class
    GridColumnDataEventHandler Delegate
   [Expand]GridComboBoxColumn Class
   [Expand]GridControl Class
   [Expand]GridControlBase Class
   [Expand]GridControlCommands Class
    GridControlNavigationStyle Enumeration
   [Expand]GridDateColumn Class
   [Expand]GridMaskColumn Class
   [Expand]GridSpinEditColumn Class
    GridSummaryItemAlignment Enumeration
   [Collapse]GridTemplateColumn Class
     GridTemplateColumn Members
     GridTemplateColumn Constructor
    [Expand]GridTemplateColumn Properties
   [Expand]GridTextColumn Class
   [Expand]GridTextColumnBase Class
   [Expand]GridTotalSummaryData Class
    GroupSummaryDisplayMode Enumeration
   [Expand]HighlightingSettings Class
   [Expand]InitNewRowEventArgs Class
   [Expand]InvalidRowExceptionEventArgs Class
    MultiSelectMode Enumeration
    NewItemRowPosition Enumeration
   [Expand]RowEventArgs Class
    RowEventHandler Delegate
    ScrollAnimationMode Enumeration
    ShowFilterPanelMode Enumeration
    ShowSearchPanelMode Enumeration
   [Expand]SummaryItemBase Class
  [Expand]DevExpress.UI.Xaml.Grid.Native
  [Expand]DevExpress.UI.Xaml.Layout
  [Expand]DevExpress.UI.Xaml.Layout.Base
  [Expand]DevExpress.UI.Xaml.Layout.Internal
  [Expand]DevExpress.UI.Xaml.Layout.VisualElements
  [Expand]DevExpress.UI.Xaml.Map
  [Expand]DevExpress.UI.Xaml.Ribbon
  [Expand]DevExpress.Utils
  [Expand]DevExpress.XtraGrid
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

GridTemplateColumn Class

Represents a column allowing you to implement custom data presentation.

Namespace:DevExpress.UI.Xaml.Grid
Assembly:DevExpress.UI.Xaml.Grid.v18.1.dll

Expanded Syntax

Expanded Remarks

There are five column types used to present specific data types (Boolean, Date-Time, Numeric, Lists and Text), one column type that provides masking capabilities for text values, and one column type for custom data presentation via templates. Cell values are edited using data editors. Each column type stores specific settings responsible for the data editor's functionality. A cell's editor is created when an end-user starts to edit the cell's value and is automatically destroyed when editing is completed. This dramatically increases the application's performance.

Use the CellTemplate property to specify a template that defines the presentation of column cells.

When an end-user activates a cell within a column with a custom template, the GridControlBase.ShownEditor event is not raised. Since the GridControlBase.HiddenEditor event is not raised either, the DataControlBase.ActiveEditor property value always stays null.

To learn more, see Data Editing.

Expanded Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
       System.__ComObject
          System.Runtime.InteropServices.WindowsRuntime.RuntimeClass
             Windows.UI.Xaml.DependencyObject
                Windows.UI.Xaml.UIElement
                   Windows.UI.Xaml.FrameworkElement
                      ColumnBase
                         GridColumnBase
                            GridTemplateColumn

Expanded See Also

Is this topic helpful?​​​​​​​