Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGridTemplateColumn.CellEditingTemplate Property


Gets or sets the template to use to display the contents of a cell that is in editing mode.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public DataTemplate CellEditingTemplate { get; set; }

Property Value

Type: System.Windows.DataTemplate

The template that is used to display the contents of a cell that is in editing mode. The registered default is null. For information about what can influence the value, see DependencyProperty.

The cell editing template defines how the content is displayed in the column cells when in editing mode. For more information about data templates, see Data Templating Overview and Styling and Templating.

To define the template for the cell that is not in editing mode, use the CellTemplate.

The following example shows how to create the CellEditingTemplate for displaying and editing a column of dates.

The following illustration shows the output from the previous XAML.

A column using a DataTemplate

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2017 Microsoft