skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewCell

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

Inheritance
System.Object
GridViewCellBase
GridViewCell
Inherited Members
GridViewCellBase.IsKeyboardFocusWithinProperty
GridViewCellBase.IsKeyboardFocusedProperty
GridViewCellBase.CellDoubleClickEvent
GridViewCellBase.VerticalGridLinesBrushProperty
GridViewCellBase.VerticalGridLinesWidthProperty
GridViewCellBase.OnPropertyChanged(PropertyChangedEventArgs)
GridViewCellBase.OnMouseEnter(MouseEventArgs)
GridViewCellBase.OnMouseLeave(MouseEventArgs)
GridViewCellBase.IsKeyboardFocusWithin
GridViewCellBase.IsKeyboardFocused
GridViewCellBase.Column
GridViewCellBase.ParentRow
GridViewCellBase.ParentDataControl
GridViewCellBase.DataColumn
GridViewCellBase.VerticalGridLinesBrush
GridViewCellBase.VerticalGridLinesWidth
GridViewCellBase.CellDoubleClick
GridViewCellBase.PropertyChanged
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll

Syntax

public class GridViewCell : GridViewCellBase, INotifyPropertyChanged, IProvideGridViewColumn, IInputElement

Constructors

GridViewCell()

Initializes a new instance of the GridViewCell class.

Declaration
public 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

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

IsCurrent

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

Declaration
public bool IsCurrent { get; set; }
Property Value
System.Boolean

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
System.Boolean

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

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

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

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()

Prepares GridViewCell for edit.

Declaration
public void 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
GridViewCellBase.OnColumnChanged(GridViewColumn, GridViewColumn)
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
GridViewCellBase.OnGotFocus(RoutedEventArgs)

OnLostFocus(RoutedEventArgs)

Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs e

Overrides
GridViewCellBase.OnLostFocus(RoutedEventArgs)

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

Overrides
GridViewCellBase.OnMouseLeftButtonDown(MouseButtonEventArgs)

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
  • Themes Generator
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
  • System Requirements
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.