New to Telerik UI for WPFStart a free 30-day trial

Represents a field, as an element of the user interface, of a RadGridView.

Definition

Constructors

Initializes a new instance of the GridViewCell class.

C#
public GridViewCell()

Fields

CurrentBorderBrushProperty

DependencyProperty

Identifies the CurrentBorderBrush dependency property.

C#
public static readonly DependencyProperty CurrentBorderBrushProperty

DisplayVisualCuesProperty

DependencyProperty

Identifies the DisplayVisualCues dependency property.

C#
public static readonly DependencyProperty DisplayVisualCuesProperty

ErrorsProperty

DependencyProperty

Identifies the Errors dependency property.

C#
public static readonly DependencyProperty ErrorsProperty

HasValidationErrorsProperty

DependencyProperty

Identifies the HasValidationErrors dependency property.

C#
public static readonly DependencyProperty HasValidationErrorsProperty

Identifies the HighlightedBackground dependency property.

C#
public static readonly DependencyProperty HighlightedBackgroundProperty

IsCurrentProperty

DependencyProperty

Identifies the IsCurrent dependency property.

C#
public static readonly DependencyProperty IsCurrentProperty

IsHighlightedProperty

DependencyProperty

Identifies the dependency property.

C#
public static readonly DependencyProperty IsHighlightedProperty

IsInEditModeProperty

DependencyProperty

Identifies the IsInEditMode dependency property.

C#
public static readonly DependencyProperty IsInEditModeProperty

IsSelectedProperty

DependencyProperty

Represents the IsSelected property.

C#
public static readonly DependencyProperty IsSelectedProperty

IsValidProperty

DependencyProperty

Identifies the IsValid dependency property.

C#
public static readonly DependencyProperty IsValidProperty

MouseOverBackgroundProperty

DependencyProperty

Identifies the MouseOverBackground dependency property.

C#
public static readonly DependencyProperty MouseOverBackgroundProperty

ParentRowValidProperty

DependencyProperty

Identifies the ParentRowValid dependency property.

C#
public static readonly DependencyProperty ParentRowValidProperty

SelectedBackgroundProperty

DependencyProperty

Identifies the SelectedBackground dependency property.

C#
public static readonly DependencyProperty SelectedBackgroundProperty

SelectedEvent

RoutedEvent

Identifies the Selected routed event.

C#
public static readonly RoutedEvent SelectedEvent

UnselectedEvent

RoutedEvent

Identifies the Unselected routed event.

C#
public static readonly RoutedEvent UnselectedEvent

ValueProperty

DependencyProperty

Identifies the Value dependency property.

C#
public static readonly DependencyProperty ValueProperty

Properties

Gets or sets the Brush that is used to paint the current border of the cell.

C#
public Brush CurrentBorderBrush { get; set; }

Gets a value indicating whether this instance should display visual cues for selection, validation, etc.

C#
public bool DisplayVisualCues { get; }

Gets the errors.

C#
public IEnumerable Errors { get; }
Property Value:

The errors.

Gets or sets a value indicating whether this instance has validation errors.

C#
public bool HasValidationErrors { get; set; }
Property Value:

true if this instance has validation errors; otherwise, false.

Gets or sets the Brush that is used to paint the background of the cell when it is highlighted. This is when performing a search and there is a match.

C#
public Brush HighlightedBackground { get; set; }

Gets or sets a value indicating whether this GridViewCell currently has keyboard focus.

C#
public bool IsCurrent { get; set; }
Property Value:

true if this GridViewCell currently has keyboard focus; otherwise, false.

Gets or sets a value indicating whether the cell is in edit mode.

C#
public bool IsInEditMode { get; set; }
Property Value:

true if the cell is in edit mode; otherwise, false.

Indicates Whether the cell is selected.

C#
public bool IsSelected { get; set; }

Gets a value indicating whether this GridViewCell 's value is correct.

C#
public bool IsValid { get; }
Property Value:

true if this GridViewCell 's value is correct; otherwise, false.

Gets or sets the Brush that is used to paint the background of the cell when it is in MouseOver state.

C#
public Brush MouseOverBackground { get; set; }

Gets a value indicating whether the parent row of this instance is in valid state.

C#
public bool ParentRowValid { get; }

Gets or sets the Brush that is used to paint the background of the cell when it is selected.

C#
public Brush SelectedBackground { get; set; }

Gets or sets the value displayed by the GridViewCellBase.

C#
public object Value { get; set; }
Property Value:

The value.

Methods

Prepares GridViewCell for edit.

C#
public void BeginEdit()

Attempts to apply the new value of the cell.

C#
public bool CommitEdit()
Returns:

bool

True if the commit is successful (the new value is valid), false otherwise.

Gets the editing element.

C#
public object GetEditingElement()
Returns:

object

C#
public override void OnApplyTemplate()

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

C#
protected override void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
Parameters:oldColumnGridViewColumn

The old column definition.

newColumnGridViewColumn

The new column definition.

Overrides: GridViewCellBase.OnColumnChanged(GridViewColumn, GridViewColumn)

Remarks:

Coerces ContentTemplate and ContentTemplateSelector.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs
C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs
C#
protected override void OnLostFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs
C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

Raises the Selected event.

C#
protected virtual void OnSelected(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

Empty event arguments.

C#
protected override void OnTextInput(TextCompositionEventArgs e)
Parameters:eTextCompositionEventArgs

Raises the Unselected event.

C#
protected virtual void OnUnselected(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

Empty event arguments.

C#
protected virtual void PrepareCellProperties()

Events

Selected

RoutedEventHandler

Occurs when GridViewCell becomes selected.

C#
public event RoutedEventHandler Selected

Unselected

RoutedEventHandler

Occurs when GridViewCell becomes unselected.

C#
public event RoutedEventHandler Unselected