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 Data
Declaration
public static readonly DependencyProperty DataFormatStringProperty
Field Value
System.
|
ExpressionProperty
Identifies the Expression dependency property.
Declaration
public static readonly DependencyProperty ExpressionProperty
Field Value
System.
|
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. The data format string. |
Implements
ExportedElementWidth
Gets the actual width of the column.
Declaration
public double ExportedElementWidth { get; }
Property Value
System.
|
Implements
Expression
Gets or sets the expression that will be evaluated.
Declaration
public Expression Expression { get; set; }
Property Value
System. The expression that will be evaluated. |
FilteringDisplayFunc
Gets the filtering display function.
Declaration
protected override Func<object, object> FilteringDisplayFunc { get; }
Property Value
System. 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. The lambda expression. |
Methods
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public override bool CanGroup()
Returns
System.
|
Overrides
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public override bool CanSort()
Returns
System.
|
Overrides
CopyPropertiesFrom(GridViewColumn)
Copy properties from source column.
Declaration
public override void CopyPropertiesFrom(GridViewColumn source)
Parameters
Grid
|
Overrides
CreateCellElement(GridViewCell, Object)
Creates the element for the cell in view mode.
Declaration
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
Grid
|
System.
|
Returns
System.
|
Overrides
CreateColumnFilterDescriptor()
Creates the column filter descriptor.
Declaration
public override IColumnFilterDescriptor CreateColumnFilterDescriptor()
Returns
Overrides
GetCellContent(Object)
Gets the content of the cell.
Declaration
public object GetCellContent(object parameter)
Parameters
System. The data item. |
Returns
System. The content. |
Implements
GetValueForItem(Object)
Gets the value associated with this column for provided data item.
Declaration
public object GetValueForItem(object item)
Parameters
System. The data item. |
Returns
System.
|
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. The data context for the selected element. |
Returns
System. An object that represents the content of the cell. |
Overrides
OnPropertyChanged(PropertyChangedEventArgs)
Raises the Property
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
System. The System. |
Overrides
RefreshCellElement(FrameworkElement, DependencyProperty)
Called when cell element needs refresh.
Declaration
protected override void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Parameters
System.
|
System.
|