DataGridColumn
Defines an abstraction of a table column that is used to visualize data within a RadDataGrid component. A column generally represents a Property within the underlying ViewModel.
Definition
Namespace:Telerik.Maui.Controls.DataGrid
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class DataGridColumn : StyleableElement
Inheritance: objectDataGridColumn
Derived Classes:
Constructors
Initializes a new instance of the DataGridColumn class.
protected DataGridColumn()
Fields
ActualWidthProperty
BindableProperty
Identifies the ActualWidth property.
public static readonly BindableProperty ActualWidthProperty
CanUserEditProperty
BindableProperty
Identifies the CanUserEdit property.
public static readonly BindableProperty CanUserEditProperty
CanUserFilterProperty
BindableProperty
Identifies the CanUserFilter property.
public static readonly BindableProperty CanUserFilterProperty
CanUserGroupProperty
BindableProperty
Identifies the CanUserGroup property.
public static readonly BindableProperty CanUserGroupProperty
CanUserReorderProperty
BindableProperty
Identifies the CanUserReorder property.
public static readonly BindableProperty CanUserReorderProperty
CanUserSortProperty
BindableProperty
Identifies the CanUserSort property.
public static readonly BindableProperty CanUserSortProperty
CellContentTemplateProperty
BindableProperty
Identifies the CellContentTemplate property.
public static readonly BindableProperty CellContentTemplateProperty
CellContentTemplateSelectorProperty
BindableProperty
Identifies the CellContentTemplateSelector property.
public static readonly BindableProperty CellContentTemplateSelectorProperty
CellDecorationStyleProperty
BindableProperty
Identifies the CellDecorationStyle property.
public static readonly BindableProperty CellDecorationStyleProperty
CellDecorationStyleSelectorProperty
BindableProperty
Identifies the CellDecorationStyleSelector property.
public static readonly BindableProperty CellDecorationStyleSelectorProperty
CellEditTemplateProperty
BindableProperty
Identifies the CellEditTemplate property.
public static readonly BindableProperty CellEditTemplateProperty
FilterControlTemplateProperty
BindableProperty
Identifies the FilterControlTemplate property.
public static readonly BindableProperty FilterControlTemplateProperty
FooterContentTemplateProperty
BindableProperty
Identifies the FooterContentTemplate property.
public static readonly BindableProperty FooterContentTemplateProperty
FooterStyleProperty
BindableProperty
Identifies the FooterStyle property.
public static readonly BindableProperty FooterStyleProperty
FooterTextProperty
BindableProperty
Identifies the FooterText property.
public static readonly BindableProperty FooterTextProperty
HeaderContentTemplateProperty
BindableProperty
Identifies the HeaderContentTemplate property.
public static readonly BindableProperty HeaderContentTemplateProperty
HeaderStyleProperty
BindableProperty
Identifies the HeaderStyle property.
public static readonly BindableProperty HeaderStyleProperty
HeaderTextProperty
BindableProperty
Identifies the HeaderText property.
public static readonly BindableProperty HeaderTextProperty
IsFilteredProperty
BindableProperty
Identifies the IsFiltered property.
public static readonly BindableProperty IsFilteredProperty
IsFrozenProperty
BindableProperty
Identifies the IsFrozen dependency property.
public static readonly BindableProperty IsFrozenProperty
IsResizableProperty
BindableProperty
Identifies the IsResizable dependency property.
public static readonly BindableProperty IsResizableProperty
IsSearchableProperty
BindableProperty
Identifies the IsSearchable property.
public static readonly BindableProperty IsSearchableProperty
IsVisibleProperty
BindableProperty
Identifies the IsVisible property.
public static readonly BindableProperty IsVisibleProperty
MinimumWidthProperty
BindableProperty
Identifies the MinimumWidth property.
public static readonly BindableProperty MinimumWidthProperty
NameProperty
BindableProperty
Identifies the Name property.
public static readonly BindableProperty NameProperty
ShowDistinctValuesFilterProperty
BindableProperty
Identifies the ShowDistinctValuesFilter property.
public static readonly BindableProperty ShowDistinctValuesFilterProperty
SizeModeProperty
BindableProperty
Identifies the SizeMode property.
public static readonly BindableProperty SizeModeProperty
SortDirectionProperty
BindableProperty
Identifies the SortDirection property.
public static readonly BindableProperty SortDirectionProperty
WidthProperty
BindableProperty
Identifies the Width property.
public static readonly BindableProperty WidthProperty
Properties
Gets the actual width of the column.
public double ActualWidth { get; }
Gets the collection of AggregateDescriptorBase objects that defines the current aggregate functions to be applied when the data view is computed.
public ObservableItemCollection<AggregateDescriptorBase> AggregateDescriptors { get; }
Available AggregateDescriptorBase types include:
- PropertyAggregateDescriptor - Applies an aggregate (Sum, Count, Min, Max, Average, etc.) over a specified property.
- DelegateAggregateDescriptor - Uses a custom delegate to compute an aggregate with arbitrary logic.
Gets the aggregate values for the current column.
public IEnumerable<string> AggregateValues { get; }
Gets or sets a value indicating whether the user can edit this column.
public bool CanUserEdit { get; set; }
The default value is "true".
To enable/disable editing in RadDataGrid see the
Gets or sets a value indicating whether the user can filter this column by using the built-in filtering UI.
public bool CanUserFilter { get; set; }
The default value is "true".
To enable/disable Filtering in RadDataGrid see the
Gets or sets a value indicating whether the user can group-by this column by using the built-in Grouping UI.
public bool CanUserGroup { get; set; }
The default value is "true".
To enable/disable grouping in RadDataGrid see the .
Gets or sets a value indicating whether the user can use a drag gesture to reorder this column.
public bool CanUserReorder { get; set; }
The default value is "true".
To enable/disable reordering of columns see the CanUserReorderColumns.
Gets or sets a value indicating whether the user can sort the data by the values in this column.
public bool CanUserSort { get; set; }
The default value is "true".
To enable/disable sorting in RadDataGrid see the .
CellContentTemplate
DataTemplate
Gets or sets the DataTemplate instance that defines the appearance of each cell associated with tis column.
public DataTemplate CellContentTemplate { get; set; }
CellContentTemplateSelector
DataTemplateSelector
Gets or sets the DataTemplateSelector instance that may be used to retrieve dynamic data templates on a per cell basis.
public DataTemplateSelector CellContentTemplateSelector { get; set; }
CellDecorationStyle
Style
Gets or sets the Style object that defines the background of each cell associated with this column. The Style should target DataGridCellDecorationAppearance.
public Style CellDecorationStyle { get; set; }
Gets or sets the IStyleSelector instance that allows for dynamic decoration on a per cell basis.
public IStyleSelector CellDecorationStyleSelector { get; set; }
CellEditTemplate
DataTemplate
Gets or sets the DataTemplate instance that defines the editor associated with tis column.
public DataTemplate CellEditTemplate { get; set; }
Gets the corresponding RadDataGrid.
public RadDataGrid DataGrid { get; }
FilterControlTemplate
DataTemplate
Gets or sets the user defined template used for the filtering UI. The template must contain an instance of the DataGridFilterControlBase class.
public DataTemplate FilterControlTemplate { get; set; }
FooterContentTemplate
DataTemplate
Gets or sets the DataTemplate instance that defines the appearance of the footer.
public DataTemplate FooterContentTemplate { get; set; }
FooterStyle
Style
Gets or sets the Style instance that defines the appearance of the DataGridColumn footer. The Style should target DataGridColumnFooterAppearance.
public Style FooterStyle { get; set; }
Gets or sets the content to be displayed in the Footer UI of the Column.
public string FooterText { get; set; }
HeaderContentTemplate
DataTemplate
Gets or sets the DataTemplate instance that defines the appearance of the header.
public DataTemplate HeaderContentTemplate { get; set; }
HeaderStyle
Style
Gets or sets the Style instance that defines the appearance of the header of the column. The Style should target DataGridColumnHeaderAppearance.
public Style HeaderStyle { get; set; }
Gets or sets the content to be displayed in the Header UI that represents the column.
public string HeaderText { get; set; }
Gets a value indicating whether the column is auto-generated internally.
public bool IsAutoGenerated { get; }
Gets a value indicating whether the column is currently filtered.
public bool IsFiltered { get; }
Gets or sets a value indicating whether the DataGridColumn is frozen.
public bool IsFrozen { get; set; }
Gets or sets a value indicating whether the user can resize the DataGridColumn. This is only suppoted in WinUI and MacCatalyst.
public bool IsResizable { get; set; }
Gets or sets a value indicating whether the cells for this column should be included in searching. See SearchSettings.
public bool? IsSearchable { get; set; }
Gets or sets a value indicating whether if the current column is visible or not.
public bool IsVisible { get; set; }
Gets or sets the minimum width for the column. Applicable when the SizeMode property is set to Fixed.
public double MinimumWidth { get; set; }
Gets or sets the unique name of the column. Typically this is used as an identifier for this particular instance.
public string Name { get; set; }
Gets or sets a value that indicates whether the DataGridDistinctValuesFilterView should be shown inside the filtering view to display a list of distinct values to filter by.
public bool ShowDistinctValuesFilter { get; set; }
Gets or sets the DataGridColumnSizeMode value that controls how the column and its associated cells are sized horizontally.
public DataGridColumnSizeMode SizeMode { get; set; }
Gets the current sort direction of the column.
public SortDirection SortDirection { get; }
Methods
protected override void OnPropertyChanged(string propertyName = null)