Class
DataGridTemplateColumn

Represents a DataGridColumn that uses a DataTemplate to describe the content of each associated grid cell.

Definition

Namespace:Telerik.UI.Xaml.Controls.Grid

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class DataGridTemplateColumn : DataGridColumn

Inheritance: objectRadDependencyObjectDataGridColumnDataGridTemplateColumn

Inherited Members DataGridColumn.IsCellFlyoutEnabledPropertyDataGridColumn.CellDecorationStylePropertyDataGridColumn.CellDecorationStyleSelectorPropertyDataGridColumn.WidthPropertyDataGridColumn.SizeModePropertyDataGridColumn.HeaderPropertyDataGridColumn.SortDirectionPropertyDataGridColumn.HeaderStylePropertyDataGridColumn.CanUserGroupPropertyDataGridColumn.CanUserFilterPropertyDataGridColumn.CanUserSortPropertyDataGridColumn.CanUserResizePropertyDataGridColumn.CanUserReorderPropertyDataGridColumn.CanUserEditPropertyDataGridColumn.NamePropertyDataGridColumn.DataOperationsFlyoutTemplatePropertyDataGridColumn.IsVisiblePropertyDataGridColumn.AggregatesTemplatePropertyDataGridColumn.ClearCell(object)DataGridColumn.CreateDecorationContainer(object)DataGridColumn.UpdateFilterVisualState(bool)DataGridColumn.IsCellFlyoutEnabledDataGridColumn.CellDecorationStyleDataGridColumn.CellDecorationStyleSelectorDataGridColumn.AggregatesTemplateDataGridColumn.NameDataGridColumn.CanUserEditDataGridColumn.CanUserResizeDataGridColumn.CanUserFilterDataGridColumn.CanUserReorderDataGridColumn.CanUserGroupDataGridColumn.CanUserSortDataGridColumn.IsVisibleDataGridColumn.HeaderStyleDataGridColumn.SizeModeDataGridColumn.WidthDataGridColumn.ActualWidthDataGridColumn.IsAutoGeneratedDataGridColumn.HeaderDataGridColumn.SortDirectionDataGridColumn.DataOperationsFlyoutTemplateDataGridColumn.SupportsCompositeFilter

Constructors

DataGridTemplateColumn()

Declaration

cs-api-definition
public DataGridTemplateColumn()

Fields

CellContentTemplateProperty

Identifies the CellContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CellContentTemplateProperty

Field Value

DependencyProperty

CellContentTemplateSelectorProperty

Identifies the CellContentTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CellContentTemplateSelectorProperty

Field Value

DependencyProperty

GroupDescriptorProperty

Identifies the GroupDescriptor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GroupDescriptorProperty

Field Value

DependencyProperty

SortDescriptorProperty

Identifies the SortDescriptor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortDescriptorProperty

Field Value

DependencyProperty

Properties

CellContentTemplate

Gets or sets the DataTemplate instance that defines the appearance of each cell associated with tis column.

Declaration

cs-api-definition
public DataTemplate CellContentTemplate { get; set; }

Property Value

DataTemplate

CellContentTemplateSelector

Gets or sets the DataTemplateSelector instance that may be used to retrieve dynamic data templates on a per cell basis.

Declaration

cs-api-definition
public DataTemplateSelector CellContentTemplateSelector { get; set; }

Property Value

DataTemplateSelector

GroupDescriptor

Gets or sets the GroupDescriptorBase that defines whether the column may be grouped by the user using drag-and-drop operation.

Declaration

cs-api-definition
public GroupDescriptorBase GroupDescriptor { get; set; }

Property Value

GroupDescriptorBase

SortDescriptor

Gets or sets the SortDescriptorBase that defines how the column will be sorted by the user upon a Tap gesture over the column header.

Declaration

cs-api-definition
public SortDescriptorBase SortDescriptor { get; set; }

Property Value

SortDescriptorBase

Methods

CreateContainer(object)

Creates an instance of a FrameworkElement visualized when the column is not edited.

Declaration

cs-api-definition
public override object CreateContainer(object rowItem)

Parameters

rowItem

object

Returns

object

An instance of the control.

Overrides DataGridColumn.CreateContainer(object)

CreateFilterControl()

There is no default built-in control that supports filtering over a Template column.

Declaration

cs-api-definition
protected override DataGridFilterControlBase CreateFilterControl()

Returns

DataGridFilterControlBase

Overrides DataGridColumn.CreateFilterControl()

GetContainerType(object)

Gets the type of the control visualized when the template column is not currently edited.

Declaration

cs-api-definition
public override object GetContainerType(object rowItem)

Parameters

rowItem

object

Returns

object

The type of the control.

Overrides DataGridColumn.GetContainerType(object)

GetEditorType(object)

Gets the type of the editor for the DataGridTemplateColumn that is visualized when entering in edit mode.

Declaration

cs-api-definition
public override object GetEditorType(object item)

Parameters

item

object

Returns

object

The type of the editor.

Overrides DataGridColumn.GetEditorType(object)

GetValueForInstance(object)

Retrieves the column value for the provided object instance. This actually represents the content of a grid cell where a cell is defined by a row (data item) and a column.

Declaration

cs-api-definition
public override object GetValueForInstance(object instance)

Parameters

instance

object

Returns

object

Overrides DataGridColumn.GetValueForInstance(object)

PrepareCell(object, object, object)

Prepares the control visualized by the cell when it is not edited.

Declaration

cs-api-definition
public override void PrepareCell(object container, object value, object item)

Parameters

container

object

The container visualizing the cell data when it is not edited.

value

object

The value of the cell.

item

object

The item visualized in the cell.

Overrides DataGridColumn.PrepareCell(object, object, object)