Class GridViewCell
Represents a field, as an element of the user interface, of a RadGridView.
Inherited Members
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class GridViewCell : GridViewCellBase, INotifyPropertyChanged, IProvideGridViewColumn
Constructors
GridViewCell()
Fields
CurrentBorderBrushProperty
Identifies the CurrentBorderBrush dependency property.
Declaration
public static readonly DependencyProperty CurrentBorderBrushProperty
Field Value
System.Windows.DependencyProperty
|
DisplayVisualCuesProperty
Identifies the DisplayVisualCues dependency property.
Declaration
public static readonly DependencyProperty DisplayVisualCuesProperty
Field Value
System.Windows.DependencyProperty
|
ErrorsProperty
Identifies the Errors dependency property.
Declaration
public static readonly DependencyProperty ErrorsProperty
Field Value
System.Windows.DependencyProperty
|
HasValidationErrorsProperty
Identifies the HasValidationErrors dependency property.
Declaration
public static readonly DependencyProperty HasValidationErrorsProperty
Field Value
System.Windows.DependencyProperty
|
HighlightedBackgroundProperty
Identifies the HighlightedBackground dependency property.
Declaration
public static readonly DependencyProperty HighlightedBackgroundProperty
Field Value
System.Windows.DependencyProperty
|
IsCurrentProperty
Identifies the IsCurrent dependency property.
Declaration
public static readonly DependencyProperty IsCurrentProperty
Field Value
System.Windows.DependencyProperty
|
IsHighlightedProperty
Identifies the Telerik.Windows.Controls.GridView.GridViewCell.IsHighlighted dependency property.
Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
System.Windows.DependencyProperty
|
IsInEditModeProperty
Identifies the IsInEditMode dependency property.
Declaration
public static readonly DependencyProperty IsInEditModeProperty
Field Value
System.Windows.DependencyProperty
|
IsSelectedProperty
Represents the IsSelected property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty
|
IsValidProperty
Identifies the IsValid dependency property.
Declaration
public static readonly DependencyProperty IsValidProperty
Field Value
System.Windows.DependencyProperty
|
MouseOverBackgroundProperty
Identifies the MouseOverBackground dependency property.
Declaration
public static readonly DependencyProperty MouseOverBackgroundProperty
Field Value
System.Windows.DependencyProperty
|
ParentRowValidProperty
Identifies the ParentRowValid dependency property.
Declaration
public static readonly DependencyProperty ParentRowValidProperty
Field Value
System.Windows.DependencyProperty
|
SelectedBackgroundProperty
Identifies the SelectedBackground dependency property.
Declaration
public static readonly DependencyProperty SelectedBackgroundProperty
Field Value
System.Windows.DependencyProperty
|
SelectedEvent
Identifies the Selected routed event.
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
System.Windows.RoutedEvent
|
UnselectedEvent
Identifies the Unselected routed event.
Declaration
public static readonly RoutedEvent UnselectedEvent
Field Value
System.Windows.RoutedEvent
|
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
System.Windows.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
System.Windows.Media.Brush
|
DisplayVisualCues
Gets a value indicating whether this instance should display visual cues for selection, validation, etc.
Declaration
public bool DisplayVisualCues { get; }
Property Value
System.Boolean
|
Errors
Gets the errors.
Declaration
public IEnumerable Errors { get; }
Property Value
System.Collections.IEnumerable
The errors. |
HasValidationErrors
Gets or sets a value indicating whether this instance has validation errors.
Declaration
public bool HasValidationErrors { get; set; }
Property Value
System.Boolean
|
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
System.Windows.Media.Brush
|
IsCurrent
Gets or sets a value indicating whether this GridViewCell currently has keyboard focus.
Declaration
public bool IsCurrent { get; set; }
Property Value
System.Boolean
|
IsInEditMode
Gets or sets a value indicating whether the cell is in edit mode.
Declaration
public bool IsInEditMode { get; set; }
Property Value
System.Boolean
|
IsSelected
Indicates Whether the cell is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean
|
IsValid
Gets a value indicating whether this GridViewCell 's value is correct.
Declaration
public bool IsValid { get; }
Property Value
System.Boolean
|
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
System.Windows.Media.Brush
|
ParentRowValid
Gets a value indicating whether the parent row of this instance is in valid state.
Declaration
public bool ParentRowValid { get; }
Property Value
System.Boolean
|
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
System.Windows.Media.Brush
|
Value
Gets or sets the value displayed by the GridViewCellBase.
Declaration
public object Value { get; set; }
Property Value
System.Object
The value. |
Methods
BeginEdit()
CommitEdit()
Attempts to apply the new value of the cell.
Declaration
public bool CommitEdit()
Returns
System.Boolean
True if the commit is successful (the new value is valid), false otherwise. |
GetEditingElement()
Gets the editing element.
Declaration
public object GetEditingElement()
Returns
System.Object
|
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
GridViewColumn
oldColumn
The old column definition. |
GridViewColumn
newColumn
The new column definition. |
Overrides
Remarks
Coerces ContentTemplate and ContentTemplateSelector.
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnGotFocus(RoutedEventArgs)
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
|
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
|
OnLostFocus(RoutedEventArgs)
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
|
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|
OnSelected(RadRoutedEventArgs)
Raises the Selected event.
Declaration
protected virtual void OnSelected(RadRoutedEventArgs e)
Parameters
RadRoutedEventArgs
e
Empty event arguments. |
OnTextInput(TextCompositionEventArgs)
Declaration
protected override void OnTextInput(TextCompositionEventArgs e)
Parameters
System.Windows.Input.TextCompositionEventArgs
e
|
OnUnselected(RadRoutedEventArgs)
Raises the Unselected event.
Declaration
protected virtual void OnUnselected(RadRoutedEventArgs e)
Parameters
RadRoutedEventArgs
e
Empty event arguments. |
PrepareCellProperties()
Declaration
protected virtual void PrepareCellProperties()
Events
Selected
Occurs when GridViewCell becomes selected.
Declaration
public event RoutedEventHandler Selected
Event Type
System.Windows.RoutedEventHandler
|
Unselected
Occurs when GridViewCell becomes unselected.
Declaration
public event RoutedEventHandler Unselected
Event Type
System.Windows.RoutedEventHandler
|