GridViewCell
Represents a field, as an element of the user interface, of a RadGridView.
Definition
Namespace:Telerik.Windows.Controls.GridView
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewCell : GridViewCellBase, INotifyPropertyChanged
Inheritance: objectGridViewCellBaseGridViewCell
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewCell class.
public GridViewCell()
Fields
CurrentBorderBrushProperty
DependencyProperty
Identifies the CurrentBorderBrush dependency property.
public static readonly DependencyProperty CurrentBorderBrushProperty
DisplayVisualCuesProperty
DependencyProperty
Identifies the DisplayVisualCues dependency property.
public static readonly DependencyProperty DisplayVisualCuesProperty
ErrorsProperty
DependencyProperty
Identifies the Errors dependency property.
public static readonly DependencyProperty ErrorsProperty
HasValidationErrorsProperty
DependencyProperty
Identifies the HasValidationErrors dependency property.
public static readonly DependencyProperty HasValidationErrorsProperty
HighlightedBackgroundProperty
DependencyProperty
Identifies the HighlightedBackground dependency property.
public static readonly DependencyProperty HighlightedBackgroundProperty
IsCurrentProperty
DependencyProperty
Identifies the IsCurrent dependency property.
public static readonly DependencyProperty IsCurrentProperty
IsHighlightedProperty
DependencyProperty
Identifies the dependency property.
public static readonly DependencyProperty IsHighlightedProperty
IsInEditModeProperty
DependencyProperty
Identifies the IsInEditMode dependency property.
public static readonly DependencyProperty IsInEditModeProperty
IsSelectedProperty
DependencyProperty
Represents the IsSelected property.
public static readonly DependencyProperty IsSelectedProperty
IsValidProperty
DependencyProperty
Identifies the IsValid dependency property.
public static readonly DependencyProperty IsValidProperty
MouseOverBackgroundProperty
DependencyProperty
Identifies the MouseOverBackground dependency property.
public static readonly DependencyProperty MouseOverBackgroundProperty
ParentRowValidProperty
DependencyProperty
Identifies the ParentRowValid dependency property.
public static readonly DependencyProperty ParentRowValidProperty
SelectedBackgroundProperty
DependencyProperty
Identifies the SelectedBackground dependency property.
public static readonly DependencyProperty SelectedBackgroundProperty
SelectedEvent
RoutedEvent
Identifies the Selected routed event.
public static readonly RoutedEvent SelectedEvent
UnselectedEvent
RoutedEvent
Identifies the Unselected routed event.
public static readonly RoutedEvent UnselectedEvent
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
CurrentBorderBrush
Brush
Gets or sets the Brush that is used to paint the current border of the cell.
public Brush CurrentBorderBrush { get; set; }
Gets a value indicating whether this instance should display visual cues for selection, validation, etc.
public bool DisplayVisualCues { get; }
Gets the errors.
public IEnumerable Errors { get; }
The errors.
Gets or sets a value indicating whether this instance has validation errors.
public bool HasValidationErrors { get; set; }
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.
public Brush HighlightedBackground { get; set; }
Gets or sets a value indicating whether this GridViewCell currently has keyboard focus.
public bool IsCurrent { get; set; }
true if this GridViewCell currently has keyboard focus; otherwise, false.
Gets or sets a value indicating whether the cell is in edit mode.
public bool IsInEditMode { get; set; }
true if the cell is in edit mode; otherwise, false.
Indicates Whether the cell is selected.
public bool IsSelected { get; set; }
Gets a value indicating whether this GridViewCell 's value is correct.
public bool IsValid { get; }
true if this GridViewCell 's value is correct; otherwise, false.
MouseOverBackground
Brush
Gets or sets the Brush that is used to paint the background of the cell when it is in MouseOver state.
public Brush MouseOverBackground { get; set; }
Gets a value indicating whether the parent row of this instance is in valid state.
public bool ParentRowValid { get; }
SelectedBackground
Brush
Gets or sets the Brush that is used to paint the background of the cell when it is selected.
public Brush SelectedBackground { get; set; }
Gets or sets the value displayed by the GridViewCellBase.
public object Value { get; set; }
The value.
Methods
Prepares GridViewCell for edit.
public void BeginEdit()
Attempts to apply the new value of the cell.
public bool CommitEdit()
True if the commit is successful (the new value is valid), false otherwise.
Gets the editing element.
public override void OnApplyTemplate()
Called due to the cell's column definition changing. Not called due to changes within the current column definition.
protected override void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
The old column definition.
newColumnGridViewColumnThe new column definition.
Overrides:
Coerces ContentTemplate and ContentTemplateSelector.
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
protected override void OnGotFocus(RoutedEventArgs e)
protected override void OnLostFocus(RoutedEventArgs e)
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Raises the Selected event.
protected virtual void OnSelected(RadRoutedEventArgs e)
Empty event arguments.
protected override void OnTextInput(TextCompositionEventArgs e)
Raises the Unselected event.
protected virtual void OnUnselected(RadRoutedEventArgs e)
Empty event arguments.
protected virtual void PrepareCellProperties()
Events
Selected
RoutedEventHandler
Occurs when GridViewCell becomes selected.
public event RoutedEventHandler Selected
Unselected
RoutedEventHandler
Occurs when GridViewCell becomes unselected.
public event RoutedEventHandler Unselected