ClassGridViewExpressionColumn
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
GridViewExpressionColumn()
Declaration
public GridViewExpressionColumn()
Fields
DataFormatStringProperty
Identifies the DataFormatString dependency property.
Declaration
public static readonly DependencyProperty DataFormatStringProperty
Field Value
DependencyProperty
ExpressionProperty
Identifies the Expression dependency property.
Declaration
public static readonly DependencyProperty ExpressionProperty
Field Value
DependencyProperty
Properties
DataFormatString
Gets or sets the data format string. Used with string.Format statement. This is a dependency property.
Declaration
public string DataFormatString { get; set; }
Property Value
The data format string.
Implements
ExportedElementWidth
Gets the actual width of the column.
Declaration
public double ExportedElementWidth { get; }
Property Value
Implements
Expression
Gets or sets the expression that will be evaluated.
Declaration
[TypeConverter(typeof(ExpressionTypeConverter))]
public Expression Expression { get; set; }
Property Value
The expression that will be evaluated.
FilteringDisplayFunc
Gets the filtering display function.
Declaration
protected override Func<object, object> FilteringDisplayFunc { get; }
Property Value
The filtering display function.
Overrides
Remarks
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.
LambdaExpression
Gets the lambda expression.
Declaration
public LambdaExpression LambdaExpression { get; }
Property Value
The lambda expression.
Methods
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public override bool CanGroup()
Returns
true if the data represented by the column can be grouped; otherwise, false.
Overrides
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public override bool CanSort()
Returns
true if the data represented by the column can be sorted; otherwise, false.
Overrides
CopyPropertiesFrom(GridViewColumn)
Copy properties from source column.
Declaration
public override void CopyPropertiesFrom(GridViewColumn source)
Parameters
source
Overrides
CreateCellElement(GridViewCell, object)
Creates the element for the cell in view mode.
Declaration
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
cell
dataItem
Returns
FrameworkElement
Overrides
CreateColumnFilterDescriptor()
Creates the column filter descriptor.
Declaration
public override IColumnFilterDescriptor CreateColumnFilterDescriptor()
Returns
Overrides
GetCellContent(object)
Gets the content of the cell.
GetValueForItem(object)
Gets the value associated with this column for provided data item.
OnCopyingCellClipboardContent(object)
This method is called for each selected cell to retrieve the default cell content.
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
args
The PropertyChangedEventArgs instance containing the event data.
Overrides
RefreshCellElement(FrameworkElement, DependencyProperty)
Called when cell element needs refresh.
Declaration
protected override void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Parameters
element
FrameworkElement
dependencyProperty
DependencyProperty
Overrides