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