Skip to main content

DataGridColumn Properties

Properties

ActualWidthActual visible width after Width, MinWidth, and MaxWidth setting at the Column level and DataGrid level have been taken into account
CanUserReorderGets or sets a value that indicates whether the user can change the column display position by dragging the column header.
CanUserResizeGets or sets a value that indicates whether the user can adjust the column width using the mouse.
CanUserSortGets or sets a value that indicates whether the user can sort the column by clicking the column header.
CellStyleClasses 
CellThemeGets or sets the DataGridColumnHeader cell theme.
ClipboardContentBindingThe binding that will be used to get or set cell content for the clipboard.
CustomSortComparerHolds a Comparer to use for sorting, if not using the default.
DisplayIndexGets or sets the display position of the column relative to the other columns in the DataGrid.
HeaderGets or sets the DataGridColumnHeader content
HeaderTemplateGets or sets an IDataTemplate for the Header
InheritanceParentGets or sets the parent object that inherited AvaloniaProperty values are inherited from.
(Inherited from AvaloniaObject)
IsAutoGenerated 
IsFrozen 
IsReadOnly 
IsVisibleDetermines whether or not this column is visible.
Item(AvaloniaProperty)Gets or sets the value of a AvaloniaProperty.
(Inherited from AvaloniaObject)
Item(IndexerDescriptor)Gets or sets a binding for a AvaloniaProperty.
(Inherited from AvaloniaObject)
MaxWidth 
MinWidth 
OwningGridGets the DataGrid control that contains this column.
SortMemberPathHolds the name of the member to use for sorting, if not using the default.
TagGets or sets an object associated with this column.
Width 

See Also

Reference

DataGridColumn Class
Avalonia.Controls Namespace