Class
DataGridTextColumn

Represents a DataGridTypedColumn that converts the content of each associated cell to a string object.

Definition

Namespace:Telerik.UI.Xaml.Controls.Grid

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class DataGridTextColumn : DataGridTypedColumn, IExportableColumn

Inheritance: objectRadDependencyObjectDataGridColumnDataGridTypedColumnDataGridTextColumn

Derived Classes: DataGridBooleanColumnDataGridComboBoxColumnDataGridDateColumnDataGridDateTimeColumnDataGridNumericalColumnDataGridTimeColumn

Implements: IExportableColumn

Inherited Members DataGridTypedColumn.PropertyNamePropertyDataGridTypedColumn.CellContentStylePropertyDataGridTypedColumn.CellContentStyleSelectorPropertyDataGridTypedColumn.CellEditorStylePropertyDataGridTypedColumn.GetValueForInstance(object)DataGridTypedColumn.CreateGroupDescriptor()DataGridTypedColumn.CreateSortDescriptor()DataGridTypedColumn.PropertyNameDataGridTypedColumn.CellContentStyleDataGridTypedColumn.CellContentStyleSelectorDataGridTypedColumn.CellEditorStyleDataGridColumn.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

DataGridTextColumn()

Declaration

cs-api-definition
public DataGridTextColumn()

Fields

CellContentFormatProperty

Identifies the CellContentFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CellContentFormatProperty

Field Value

DependencyProperty

ShowDistinctValuesFilterProperty

Identifies the ShowDistinctValuesFilter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowDistinctValuesFilterProperty

Field Value

DependencyProperty

Properties

CellContentFormat

Gets or sets the custom format for each cell value. The String.Format routine is used and the format passed should be in the form required by this method.

Declaration

cs-api-definition
public string CellContentFormat { get; set; }

Property Value

string

ShowDistinctValuesFilter

Gets or sets whether the distinct values list is available in the filter flyout.

Declaration

cs-api-definition
public bool ShowDistinctValuesFilter { get; set; }

Property Value

bool

Methods

ClearEditorContentVisual(FrameworkElement)

Clears all bindings and content set to the TextBox visualized when entering edit mode.

Declaration

cs-api-definition
public override void ClearEditorContentVisual(FrameworkElement editorContent)

Parameters

editorContent

FrameworkElement

The editor itself.

Overrides DataGridTypedColumn.ClearEditorContentVisual(FrameworkElement)

CreateContainer(object)

Creates an instance of a TextBlock 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)

CreateEditorContentVisual()

Creates an instance of a TextBox used by the column when entering edit mode.

Declaration

cs-api-definition
public override FrameworkElement CreateEditorContentVisual()

Returns

FrameworkElement

An instance of the editor.

Overrides DataGridTypedColumn.CreateEditorContentVisual()

CreateFilterControl()

Creates the DataGridTextFilterControl instance that allows filtering operation to be applied upon this column.

Declaration

cs-api-definition
protected override DataGridFilterControlBase CreateFilterControl()

Returns

DataGridFilterControlBase

Overrides DataGridColumn.CreateFilterControl()

GetCellContent(object)

Gets the content of the cell.

Declaration

cs-api-definition
public override object GetCellContent(object parameter)

Parameters

parameter

object

The data item.

Returns

object

The content.

Overrides DataGridTypedColumn.GetCellContent(object)

GetContainerType(object)

Gets the type of the control visualized when the text 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 DataGridTextColumn 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)

PrepareCell(object, object, object)

Prepares the UIElement inside which the cell is visualized.

Declaration

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

Parameters

container

object

The element inside which the cell is visualized.

value

object

The value of the cell.

item

object

The business object represented in the cell.

Overrides DataGridTypedColumn.PrepareCell(object, object, object)

PrepareEditorContentVisual(FrameworkElement, Binding)

Prepares all bindings and content set to the TextBox visualized when entering edit mode.

Declaration

cs-api-definition
public override void PrepareEditorContentVisual(FrameworkElement editorContent, Binding binding)

Parameters

editorContent

FrameworkElement

The editor itself.

binding

Binding

The binding set to the editor of the cell.

Overrides DataGridTypedColumn.PrepareEditorContentVisual(FrameworkElement, Binding)