This column can display the results of a calculation on the data item's properties.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewExpressionColumn : GridViewColumn, IFieldDescriptor, INotifyPropertyChanged, IExportableColumn
Inheritance: objectGridViewColumnGridViewExpressionColumn
Implements:
Inherited Members
Constructors
public GridViewExpressionColumn()
Fields
DataFormatStringProperty
DependencyProperty
Identifies the DataFormatString dependency property.
public static readonly DependencyProperty DataFormatStringProperty
ExpressionProperty
DependencyProperty
Identifies the Expression dependency property.
public static readonly DependencyProperty ExpressionProperty
Properties
Gets or sets the data format string. Used with string.Format statement. This is a dependency property.
public string DataFormatString { get; set; }
The data format string.
Implements:
Gets the actual width of the column.
public double ExportedElementWidth { get; }
Implements:
Gets or sets the expression that will be evaluated.
[TypeConverter(typeof(ExpressionTypeConverter))]
public Expression Expression { get; set; }
The expression that will be evaluated.
Gets the filtering display function.
protected override Func<object, object> FilteringDisplayFunc { get; }
The filtering display function.
Overrides:
This function is used by the filtering control distinct values list. It accepts a raw data value and returns what will become the content of the distinct value checkbox.
Gets the lambda expression.
public LambdaExpression LambdaExpression { get; }
The lambda expression.
Methods
Determines whether the data represented by the column can be grouped.
public override bool CanGroup()
true if the data represented by the column can be grouped; otherwise, false.
Overrides:
Determines whether the data represented by the column can be sorted.
public override bool CanSort()
true if the data represented by the column can be sorted; otherwise, false.
Overrides:
Copy properties from source column.
public override void CopyPropertiesFrom(GridViewColumn source)
Overrides:
CreateCellElement(GridViewCell, object)
FrameworkElement
Creates the element for the cell in view mode.
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
FrameworkElement
Overrides:
Creates the column filter descriptor.
public override IColumnFilterDescriptor CreateColumnFilterDescriptor()
Overrides:
Raises the PropertyChanged event.
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
The PropertyChangedEventArgs instance containing the event data.
Overrides:
Called when cell element needs refresh.
protected override void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Overrides: