Skip to content

GridViewColumn<TItem> class

A column of a GridView: header, width constraints, sort comparer and cell template for items of TItem.

Guide: C# Markup reference: Gridview

public sealed class GridViewColumn<TItem>
name description
GridViewColumn() The default constructor.
CellTemplate { get; set; } Gets or sets the template that builds a row’s cell for this column.
Header { get; set; } Gets or sets the header text.
HeaderTextAlignment { get; set; } Gets or sets the horizontal alignment of the header text.
IsResizable { get; set; } Gets or sets whether the column can be resized by dragging the header separator; the default is true.
MaxWidth { get; set; } Gets or sets the maximum column width enforced by layout and resize; the default is positive infinity.
MinWidth { get; set; } Gets or sets the minimum column width enforced during resize; 0 (the default) means no minimum.
SortComparer { get; set; } Gets or sets the item comparer used when this column is sorted; null makes the column non-sortable.
Width { get; set; } Gets or sets the column width. Numeric values are treated as fixed pixel widths.