ClassGridViewImageColumn
GridViewImageColumn provides an easy and fast way to display image. The column automatically creates Image based on DataMemberBinding property.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewImageColumn : GridViewBoundColumnBase, INotifyPropertyChanged, IDataFieldDescriptor, IFieldDescriptor, IExportableColumn
Inheritance: objectGridViewColumnGridViewBoundColumnBaseGridViewImageColumn
Implements:
Inherited Members
Constructors
GridViewImageColumn()
Initializes a new instance of the GridViewImageColumn class.
Declaration
public GridViewImageColumn()
Fields
ImageHeightProperty
Identify the ImageHeight dependency property.
Declaration
public static readonly DependencyProperty ImageHeightProperty
Field Value
DependencyProperty
ImageStretchProperty
Identify the ImageStretch dependency property.
Declaration
public static readonly DependencyProperty ImageStretchProperty
Field Value
DependencyProperty
ImageWidthProperty
Identify the ImageWidth dependency property.
Declaration
public static readonly DependencyProperty ImageWidthProperty
Field Value
DependencyProperty
Properties
ErrorImageSource
Gets or sets the error image source.
Declaration
public Uri ErrorImageSource { get; set; }
Property Value
Uri
The error image source.
ImageHeight
Gets or sets height for the image. This is a dependency property.
Declaration
public double ImageHeight { get; set; }
Property Value
The image height.
ImageStretch
Gets or sets stretch for the image. This is a dependency property.
Declaration
public Stretch ImageStretch { get; set; }
Property Value
Stretch
The image stretch.
ImageWidth
Gets or sets width for the image. This is a dependency property.
Declaration
public double ImageWidth { get; set; }
Property Value
The image width.
Methods
CanEdit(object)
Determines whether the data represented by the column can be edited.
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
OnDataMemberBindingChanged()
Called when DataMemberBinding was changed.
Declaration
protected override void OnDataMemberBindingChanged()
Overrides