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, IInputElement
Constructors
GridViewCell()
Fields
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
|
IsCurrentProperty
Identifies the IsCurrent dependency property.
Declaration
public static readonly DependencyProperty IsCurrentProperty
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
|
ParentRowValidProperty
Identifies the ParentRowValid dependency property.
Declaration
public static readonly DependencyProperty ParentRowValidProperty
Field Value
System.Windows.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
System.Windows.DependencyProperty
|
Properties
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
|
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
|
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
|
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
|
Overrides
OnLostFocus(RoutedEventArgs)
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
|
Overrides
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|
Overrides
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
|