Class
GridViewCellBase

A base class for grid cells.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

cs-api-definition
public abstract class GridViewCellBase : ContentControl, INotifyPropertyChanged

Inheritance: objectGridViewCellBase

Derived Classes: CommonColumnHeaderGridViewAggregateResultCellGridViewCellGridViewFooterCellBaseGridViewGroupHeaderCellGridViewHeaderCellGridViewMergedCell

Implements: INotifyPropertyChanged

Constructors

GridViewCellBase()

Initializes a new instance of the GridViewCellBase class.

Declaration

cs-api-definition
protected GridViewCellBase()

Fields

CellDoubleClickEvent

Identifies the CellDoubleClick routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent CellDoubleClickEvent

Field Value

RoutedEvent

VerticalGridLinesBrushProperty

Represents the VerticalGridLinesBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty VerticalGridLinesBrushProperty

Field Value

DependencyProperty

VerticalGridLinesWidthProperty

Represents the VerticalGridLinesWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty VerticalGridLinesWidthProperty

Field Value

DependencyProperty

Properties

Column

The column that defines how this cell should appear.

Declaration

cs-api-definition
public GridViewColumn Column { get; }

Property Value

GridViewColumn

DataColumn

Gets the data column to which the data content of the cell belongs to.

Declaration

cs-api-definition
public GridViewBoundColumnBase DataColumn { get; }

Property Value

GridViewBoundColumnBase

ParentDataControl

Gets the parent data control that is associated with this cell instance.

Declaration

cs-api-definition
public virtual GridViewDataControl ParentDataControl { get; }

Property Value

GridViewDataControl

ParentRow

Gets the row to which the cell belongs.

Declaration

cs-api-definition
public GridViewRowItem ParentRow { get; }

Property Value

GridViewRowItem

The row to which the cell belongs.

VerticalGridLinesBrush

Gets or sets vertical grid lines brush.

Declaration

cs-api-definition
public Brush VerticalGridLinesBrush { get; }

Property Value

Brush

The vertical grid lines brush.

VerticalGridLinesWidth

Gets or sets vertical grid lines width.

Declaration

cs-api-definition
public double VerticalGridLinesWidth { get; }

Property Value

double

The vertical grid lines width.

Methods

OnColumnChanged(GridViewColumn, GridViewColumn)

Called due to the cell's column definition changing. Not called due to changes within the current column definition.

Declaration

cs-api-definition
protected virtual void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)

Parameters

oldColumn

GridViewColumn

The old column definition.

newColumn

GridViewColumn

The new column definition.

Remarks

Coerces ContentTemplate and ContentTemplateSelector.

OnMouseDoubleClick(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseEnter(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseLeave(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)

Parameters

args

PropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

Events

CellDoubleClick

Occurs when user perform double click with the mouse over the GridViewCellBase.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> CellDoubleClick

Event Value

EventHandler<RadRoutedEventArgs>

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged