Class GridViewExpressionColumn
This column can display the results of a calculation on the data item's properties.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class GridViewExpressionColumn : GridViewColumn, IFilterableColumn, IFieldDescriptor, INotifyPropertyChanged, IColumnElement, IExportableColumn
Constructors
GridViewExpressionColumn()
Declaration
public GridViewExpressionColumn()
Fields
DataFormatStringProperty
Identifies the DataFormatString dependency property.
Declaration
public static readonly DependencyProperty DataFormatStringProperty
Field Value
System.Windows.DependencyProperty
|
ExpressionProperty
Identifies the Expression dependency property.
Declaration
public static readonly DependencyProperty ExpressionProperty
Field Value
System.Windows.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
System.String
The data format string. |
Implements
ExportedElementWidth
Gets the actual width of the column.
Declaration
public double ExportedElementWidth { get; }
Property Value
System.Double
|
Implements
Expression
Gets or sets the expression that will be evaluated.
Declaration
public Expression Expression { get; set; }
Property Value
System.Linq.Expressions.Expression
The expression that will be evaluated. |
FilteringDisplayFunc
Gets the filtering display function.
Declaration
protected override Func<object, object> FilteringDisplayFunc { get; }
Property Value
System.Func<System.Object, System.Object>
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
System.Linq.Expressions.LambdaExpression
The lambda expression. |
Methods
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public override bool CanGroup()
Returns
System.Boolean
|
Overrides
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public override bool CanSort()
Returns
System.Boolean
|
Overrides
CopyPropertiesFrom(GridViewColumn)
Copy properties from source column.
Declaration
public override void CopyPropertiesFrom(GridViewColumn source)
Parameters
GridViewColumn
source
|
Overrides
CreateCellElement(GridViewCell, Object)
Creates the element for the cell in view mode.
Declaration
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
GridViewCell
cell
|
System.Object
dataItem
|
Returns
System.Windows.FrameworkElement
|
Overrides
CreateColumnFilterDescriptor()
Creates the column filter descriptor.
Declaration
public override IColumnFilterDescriptor CreateColumnFilterDescriptor()
Returns
IColumnFilterDescriptor
|
Overrides
GetCellContent(Object)
Gets the content of the cell.
Declaration
public object GetCellContent(object parameter)
Parameters
System.Object
parameter
The data item. |
Returns
System.Object
The content. |
Implements
GetValueForItem(Object)
Gets the value associated with this column for provided data item.
Declaration
public object GetValueForItem(object item)
Parameters
System.Object
item
The data item. |
Returns
System.Object
|
OnCopyingCellClipboardContent(Object)
This method is called for each selected cell to retrieve the default cell content.
Declaration
public override object OnCopyingCellClipboardContent(object item)
Parameters
System.Object
item
The data context for the selected element. |
Returns
System.Object
An object that represents the content of the cell. |
Overrides
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
System.ComponentModel.PropertyChangedEventArgs
args
The System.ComponentModel.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
System.Windows.FrameworkElement
element
|
System.Windows.DependencyProperty
dependencyProperty
|