DataGridTemplateColumn Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a DataGrid column that hosts template-specified content in its cells.
public class DataGridTemplateColumn : Microsoft.Toolkit.Uwp.UI.Controls.DataGridColumn
type DataGridTemplateColumn = class
inherit DataGridColumn
Public Class DataGridTemplateColumn
Inherits DataGridColumn
- Inheritance
Constructors
DataGridTemplateColumn() |
Initializes a new instance of the DataGridTemplateColumn class. |
Properties
ActualWidth |
Gets the actual visible width after Width, MinWidth, and MaxWidth setting at the Column level and DataGrid level have been taken into account. (Inherited from DataGridColumn) |
CanUserReorder |
Gets or sets a value indicating whether the user can change the column display position by dragging the column header. (Inherited from DataGridColumn) |
CanUserResize |
Gets or sets a value indicating whether the user can adjust the column width using the mouse. (Inherited from DataGridColumn) |
CanUserSort |
Gets or sets a value indicating whether the user can sort the column by clicking the column header. (Inherited from DataGridColumn) |
CellEditingTemplate |
Gets or sets the template that is used to display the contents of a cell that is in editing mode. |
CellStyle |
Gets or sets the style that is used when rendering cells in the column. (Inherited from DataGridColumn) |
CellTemplate |
Gets or sets the template that is used to display the contents of a cell that is not in editing mode. |
ClipboardContentBinding |
Gets or sets the binding that will be used to get or set cell content for the clipboard. (Inherited from DataGridColumn) |
DisplayIndex |
Gets or sets the display position of the column relative to the other columns in the DataGrid. (Inherited from DataGridColumn) |
DragIndicatorStyle |
Gets or sets the style for the drag indicator. (Inherited from DataGridColumn) |
Header |
Gets or sets the header object. (Inherited from DataGridColumn) |
HeaderStyle |
Gets or sets the style for the header. (Inherited from DataGridColumn) |
IsAutoGenerated |
Gets a value indicating whether this column is autoGenerated. (Inherited from DataGridColumn) |
IsFrozen |
Gets a value indicating whether this column is frozen. (Inherited from DataGridColumn) |
IsReadOnly |
Gets or sets a value indicating whether this column is read-only. (Inherited from DataGridColumn) |
MaxWidth |
Gets or sets the column's maximum width. (Inherited from DataGridColumn) |
MinWidth |
Gets or sets the column's minimum width. (Inherited from DataGridColumn) |
SortDirection |
Gets or sets the column's sort direction. Null indicates no sorting. (Inherited from DataGridColumn) |
Tag |
Gets or sets an object associated with this column. (Inherited from DataGridColumn) |
Visibility |
Gets or sets the column's visibility. (Inherited from DataGridColumn) |
Width |
Gets or sets the column's width. (Inherited from DataGridColumn) |
Methods
CancelCellEdit(FrameworkElement, Object) |
CancelCellEdit |
GenerateEditingElement(DataGridCell, Object) |
Gets an element defined by the CellEditingTemplate that is bound to the column's Binding property value. |
GenerateElement(DataGridCell, Object) |
Gets an element defined by the CellTemplate that is bound to the column's Binding property value. |
GetCellContent(DataGridRow) |
Returns the column's content for the provided row. (Inherited from DataGridColumn) |
GetCellContent(Object) |
Returns the column's content for the provided row dataItem. (Inherited from DataGridColumn) |
NotifyPropertyChanged(String) |
Called by a specific column type when one of its properties changed, and its current cells need to be updated. (Inherited from DataGridColumn) |
PrepareCellForEdit(FrameworkElement, RoutedEventArgs) |
Called when a cell in the column enters editing mode. |
RefreshCellContent(FrameworkElement, Brush, String) |
Called by the DataGrid control when a column asked for its elements to be refreshed, typically because one of its properties changed. (Inherited from DataGridColumn) |
RefreshForeground(FrameworkElement, Brush) |
Called when the computed foreground of a row changed. (Inherited from DataGridColumn) |