Class DataGridColumn
Defines an abstraction of a table column that is used to visualize data within a Rad
Inheritance
Namespace: Telerik.Maui.Controls.DataGrid
Assembly: Telerik.Maui.Controls.dll
Syntax
public abstract class DataGridColumn : StyleableElement, IDataDescriptorPeer, IDataGridColumnDefinition
Constructors
DataGridColumn()
Fields
ActualWidthProperty
Identifies the Actual
Declaration
public static readonly BindableProperty ActualWidthProperty
Field Value
Microsoft.
|
CanUserEditProperty
Identifies the Can
Declaration
public static readonly BindableProperty CanUserEditProperty
Field Value
Microsoft.
|
CanUserFilterProperty
Identifies the Can
Declaration
public static readonly BindableProperty CanUserFilterProperty
Field Value
Microsoft.
|
CanUserGroupProperty
Identifies the Can
Declaration
public static readonly BindableProperty CanUserGroupProperty
Field Value
Microsoft.
|
CanUserReorderProperty
Identifies the Can
Declaration
public static readonly BindableProperty CanUserReorderProperty
Field Value
Microsoft.
|
CanUserSortProperty
Identifies the Can
Declaration
public static readonly BindableProperty CanUserSortProperty
Field Value
Microsoft.
|
CellContentTemplateProperty
Identifies the Cell
Declaration
public static readonly BindableProperty CellContentTemplateProperty
Field Value
Microsoft.
|
CellContentTemplateSelectorProperty
Identifies the Cell
Declaration
public static readonly BindableProperty CellContentTemplateSelectorProperty
Field Value
Microsoft.
|
CellDecorationStyleProperty
Identifies the Cell
Declaration
public static readonly BindableProperty CellDecorationStyleProperty
Field Value
Microsoft.
|
CellDecorationStyleSelectorProperty
Identifies the Cell
Declaration
public static readonly BindableProperty CellDecorationStyleSelectorProperty
Field Value
Microsoft.
|
CellEditTemplateProperty
Identifies the Cell
Declaration
public static readonly BindableProperty CellEditTemplateProperty
Field Value
Microsoft.
|
FilterControlTemplateProperty
Identifies the Filter
Declaration
public static readonly BindableProperty FilterControlTemplateProperty
Field Value
Microsoft.
|
FooterContentTemplateProperty
FooterStyleProperty
FooterTextProperty
HeaderContentTemplateProperty
Identifies the Header
Declaration
public static readonly BindableProperty HeaderContentTemplateProperty
Field Value
Microsoft.
|
HeaderStyleProperty
Identifies the Header
Declaration
public static readonly BindableProperty HeaderStyleProperty
Field Value
Microsoft.
|
HeaderTextProperty
Identifies the Header
Declaration
public static readonly BindableProperty HeaderTextProperty
Field Value
Microsoft.
|
IsFilteredProperty
Identifies the Is
Declaration
public static readonly BindableProperty IsFilteredProperty
Field Value
Microsoft.
|
IsFrozenProperty
Identifies the Is
Declaration
public static readonly BindableProperty IsFrozenProperty
Field Value
Microsoft.
|
IsResizableProperty
Identifies the Is
Declaration
public static readonly BindableProperty IsResizableProperty
Field Value
Microsoft.
|
IsSearchableProperty
Identifies the Is
Declaration
public static readonly BindableProperty IsSearchableProperty
Field Value
Microsoft.
|
IsVisibleProperty
Identifies the Is
Declaration
public static readonly BindableProperty IsVisibleProperty
Field Value
Microsoft.
|
MinimumWidthProperty
Identifies the Minimum
Declaration
public static readonly BindableProperty MinimumWidthProperty
Field Value
Microsoft.
|
NameProperty
Identifies the Name property.
Declaration
public static readonly BindableProperty NameProperty
Field Value
Microsoft.
|
ShowDistinctValuesFilterProperty
Identifies the Show
Declaration
public static readonly BindableProperty ShowDistinctValuesFilterProperty
Field Value
Microsoft.
|
SizeModeProperty
Identifies the Size
Declaration
public static readonly BindableProperty SizeModeProperty
Field Value
Microsoft.
|
SortDirectionProperty
Identifies the Sort
Declaration
public static readonly BindableProperty SortDirectionProperty
Field Value
Microsoft.
|
WidthProperty
Identifies the Width property.
Declaration
public static readonly BindableProperty WidthProperty
Field Value
Microsoft.
|
Properties
ActualWidth
Gets the actual width of the column.
Declaration
public double ActualWidth { get; }
Property Value
System.
|
AggregateDescriptors
Gets the collection of Aggregate
Declaration
public ObservableItemCollection<AggregateDescriptorBase> AggregateDescriptors { get; }
Property Value
AggregateValues
Gets the aggregate values for the current column.
Declaration
public IEnumerable<string> AggregateValues { get; }
Property Value
System.
|
CanUserEdit
Gets or sets a value indicating whether the user can edit this column.
Declaration
public bool CanUserEdit { get; set; }
Property Value
System. The default value is "true". |
Remarks
To enable/disable editing in RadDataGrid see the Telerik.
CanUserFilter
Gets or sets a value indicating whether the user can filter this column by using the built-in filtering UI.
Declaration
public bool CanUserFilter { get; set; }
Property Value
System. The default value is "true". |
Remarks
To enable/disable Filtering in RadDataGrid see the Telerik.
CanUserGroup
Gets or sets a value indicating whether the user can group-by this column by using the built-in Grouping UI.
Declaration
public bool CanUserGroup { get; set; }
Property Value
System. The default value is "true". |
Remarks
To enable/disable grouping in RadDataGrid see the Telerik.
CanUserReorder
Gets or sets a value indicating whether the user can use a drag gesture to reorder this column.
Declaration
public bool CanUserReorder { get; set; }
Property Value
System. The default value is "true". |
Remarks
To enable/disable reordering of columns see the Can
CanUserSort
Gets or sets a value indicating whether the user can sort the data by the values in this column.
Declaration
public bool CanUserSort { get; set; }
Property Value
System. The default value is "true". |
Remarks
To enable/disable sorting in RadDataGrid see the Telerik.
CellContentTemplate
Gets or sets the Microsoft.
Declaration
public DataTemplate CellContentTemplate { get; set; }
Property Value
Microsoft.
|
CellContentTemplateSelector
Gets or sets the Microsoft.
Declaration
public DataTemplateSelector CellContentTemplateSelector { get; set; }
Property Value
Microsoft.
|
CellDecorationStyle
Gets or sets the Microsoft.
Declaration
public Style CellDecorationStyle { get; set; }
Property Value
Microsoft.
|
CellDecorationStyleSelector
Gets or sets the IStyle
Declaration
public IStyleSelector CellDecorationStyleSelector { get; set; }
Property Value
CellEditTemplate
Gets or sets the Microsoft.
Declaration
public DataTemplate CellEditTemplate { get; set; }
Property Value
Microsoft.
|
DataGrid
FilterControlTemplate
Gets or sets the user defined template used for the filtering UI. The template must contain
an instance of the Data
Declaration
public DataTemplate FilterControlTemplate { get; set; }
Property Value
Microsoft.
|
FooterContentTemplate
FooterStyle
FooterText
HeaderContentTemplate
Gets or sets the Microsoft.
Declaration
public DataTemplate HeaderContentTemplate { get; set; }
Property Value
Microsoft.
|
HeaderStyle
Gets or sets the Microsoft.
Declaration
public Style HeaderStyle { get; set; }
Property Value
Microsoft.
|
HeaderText
Gets or sets the content to be displayed in the Header UI that represents the column.
Declaration
public string HeaderText { get; set; }
Property Value
System.
|
IsAutoGenerated
Gets a value indicating whether the column is auto-generated internally.
Declaration
public bool IsAutoGenerated { get; }
Property Value
System.
|
IsFiltered
Gets a value indicating whether the column is currently filtered.
Declaration
public bool IsFiltered { get; }
Property Value
System.
|
IsFrozen
Gets or sets a value indicating whether the Data
Declaration
public bool IsFrozen { get; set; }
Property Value
System.
|
IsResizable
Gets or sets a value indicating whether the user can resize the Data
Declaration
public bool IsResizable { get; set; }
Property Value
System.
|
IsSearchable
Gets or sets a value indicating whether the cells for this column should be included in searching. See Search
Declaration
public Nullable<bool> IsSearchable { get; set; }
Property Value
System.
|
IsVisible
Gets or sets a value indicating whether if the current column is visible or not.
Declaration
public bool IsVisible { get; set; }
Property Value
System.
|
MinimumWidth
Gets or sets the minimum width for the column. Applicable when the SizeMode property is set to Fixed.
Declaration
public double MinimumWidth { get; set; }
Property Value
System.
|
Name
Gets or sets the unique name of the column. Typically this is used as an identifier for this particular instance.
Declaration
public string Name { get; set; }
Property Value
System.
|
Examples
<telerikGrid:RadDataGrid x:Name="grid">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn Name="FirstColumn"/>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
this.grid.Columns[0].Name = "FirstColumn";
ShowDistinctValuesFilter
Gets or sets a value that indicates whether the Data
Declaration
public bool ShowDistinctValuesFilter { get; set; }
Property Value
System.
|
SizeMode
Gets or sets the Data
Declaration
public DataGridColumnSizeMode SizeMode { get; set; }
Property Value
SortDirection
Gets the current sort direction of the column.
Declaration
public SortDirection SortDirection { get; }
Property Value
Width
Gets or sets the fixed width for the column. Applicable when the SizeMode property is set to DataGridColumnSizeMode.Fixed.
Declaration
public double Width { get; set; }
Property Value
System.
|
Methods
GetValueForInstance(Object)
Retrieves the column value for the provided object instance. This actually represents the content of a grid cell where a cell is defined by a row (data item) and a column.
Declaration
public virtual object GetValueForInstance(object instance)
Parameters
System.
|
Returns
System.
|
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
System.
|