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 Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewRowInfo

This class contains logical information about a row of tabular data which is presented in the RadGridView.

Inheritance
System.Object
GridViewRowInfo
GridViewDataRowInfo
GridViewDetailsRowInfo
GridViewGroupRowInfo
GridViewSystemRowInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll

Syntax

public abstract class GridViewRowInfo : IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable

Constructors

GridViewRowInfo(GridViewInfo)

Initializes a new instance of the GridViewRowInfo.

Declaration
public GridViewRowInfo(GridViewInfo viewInfo)
Parameters
GridViewInfo viewInfo

An instance of GridViewInfo which the current row belongs to.

Fields

AllowResizeState

Declaration
protected const int AllowResizeState = 64
Field Value
System.Int32

IsAttachedState

Declaration
protected const int IsAttachedState = 1
Field Value
System.Int32

IsCurrentState

Declaration
protected const int IsCurrentState = 4
Field Value
System.Int32

IsExpandedState

Declaration
protected const int IsExpandedState = 16
Field Value
System.Int32

IsInitializedState

Declaration
protected const int IsInitializedState = 256
Field Value
System.Int32

IsModifiedState

Declaration
protected const int IsModifiedState = 2
Field Value
System.Int32

IsSelectedState

Declaration
protected const int IsSelectedState = 8
Field Value
System.Int32

IsVisibleState

Declaration
protected const int IsVisibleState = 32
Field Value
System.Int32

LastRowInfoState

Declaration
protected const int LastRowInfoState = 256
Field Value
System.Int32

state

Declaration
protected BitVector32 state
Field Value
System.Collections.Specialized.BitVector32

SuspendNotificationsState

Declaration
protected const int SuspendNotificationsState = 128
Field Value
System.Int32

Properties

AllowedStates

Gets the allowed states.

Declaration
public virtual AllowedGridViewRowInfoStates AllowedStates { get; }
Property Value
AllowedGridViewRowInfoStates

The allowed states.

AllowResize

Gets or sets value indicating whether the user can resize the row.

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

Cells

Gets the GridViewCellInfoCollection containing all GridViewCellInfo objects for the current row.

Declaration
public GridViewCellInfoCollection Cells { get; }
Property Value
GridViewCellInfoCollection

ChildRows

Gets the visual child rows.

Declaration
public virtual GridViewChildRowCollection ChildRows { get; }
Property Value
GridViewChildRowCollection

The visual child rows.

Implements
IHierarchicalRow.ChildRows

DataBoundItem

Gets the data-bound object that populated the row.

Declaration
public virtual object DataBoundItem { get; }
Property Value
System.Object

ErrorText

Gets or sets the error message text for row-level errors.

Declaration
public string ErrorText { get; set; }
Property Value
System.String

Group

Gets the DataGroup that owns this row

Declaration
public virtual DataGroup Group { get; }
Property Value
DataGroup

HasChildViews

Gets whether the GridViewRowInfo has child views.

Declaration
public virtual bool HasChildViews { get; }
Property Value
System.Boolean

The has child views.

Implements
IHierarchicalRow.HasChildViews

Height

Gets or sets the current height of the row.

Declaration
public int Height { get; set; }
Property Value
System.Int32

HierarchyLevel

Gets the level of this hierarchical row.

Declaration
public virtual int HierarchyLevel { get; }
Property Value
System.Int32

Implements
IHierarchicalRow.HierarchyLevel

Index

Gets the index of row in GridViewRowCollection.

Declaration
public virtual int Index { get; }
Property Value
System.Int32

The index.

IsCurrent

Gets value indicating whether the column contains the currently selected cell in the RadGridView.

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

IsEditable

Gets a value indicating if the values in the row can be edited.

Declaration
public virtual bool IsEditable { get; }
Property Value
System.Boolean

IsExpanded

Gets or sets a value indicating whether the row is expanded for as a grouping header row or when showing hierarchical structure.

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

IsModified

Gets a value indicating whether the row has been modified and changes are not saved in the data layer.

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

IsOdd

Gets a value indicating whether the row index is odd.

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

IsPinned

Gets or sets value indicating whether the current row is pinned and cannot be moved from its location when a user scrolls vertically.

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

IsSelected

Gets or sets a value indicating whether the row is selected.

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

IsSystem

Determines whether the row is internally created by RadGridView and is used for displaying some dynamic information.

Declaration
public virtual bool IsSystem { get; }
Property Value
System.Boolean

IsVisible

Gets or sets a value indicating whether the row is visible.

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

MaxHeight

Gets or sets the maximum height of the row.

Declaration
public int MaxHeight { get; set; }
Property Value
System.Int32

MinHeight

Gets or sets the minimum height of the row.

Declaration
public int MinHeight { get; set; }
Property Value
System.Int32

Parent

Gets the parent row for this row.

Declaration
public virtual IHierarchicalRow Parent { get; }
Property Value
IHierarchicalRow

Implements
IHierarchicalRow.Parent

PinPosition

Gets or sets the pin position for the row. When the row is pinned, it cannot be moved from its location when a user scrolls vertically.

Declaration
public virtual PinnedRowPosition PinPosition { get; set; }
Property Value
PinnedRowPosition

RowElementType

Gets the type of the GridRowElement for current GridViewRowInfo.

Declaration
public virtual Type RowElementType { get; }
Property Value
System.Type

SearchCache

If a cell from this row is a search row hit, it's column info will be stored in this cache.

Declaration
public Hashtable SearchCache { get; }
Property Value
System.Collections.Hashtable

Tag

Tag object that can be used to store user data, corresponding to the row.

Declaration
public object Tag { get; set; }
Property Value
System.Object

ViewInfo

Gets the instance of GridViewInfo which the row belongs to.

Declaration
public virtual GridViewInfo ViewInfo { get; }
Property Value
GridViewInfo

ViewTemplate

Gets the instance of GridViewTemplate which the ViewInfo corresponds to.

Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
GridViewTemplate

Methods

ClearCache()

Clears the cache.

Declaration
protected virtual void ClearCache()

Delete()

Deletes the row from the GridViewRowCollection.

Declaration
public virtual void Delete()

DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, Object, Object[])

Dispatches the event.

Declaration
protected virtual void DispatchEvent(KnownEvents id, GridEventType type, GridEventDispatchMode dispatchMode, object originator, object[] arguments)
Parameters
KnownEvents id

The id.

GridEventType type

The type.

GridEventDispatchMode dispatchMode

The dispatch mode.

System.Object originator

The originator.

System.Object[] arguments

The arguments.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

EnsureVisible()

Ensures that the row is visible.

Declaration
public void EnsureVisible()

EnsureVisible(Boolean)

Ensures that the row is visible.

Declaration
public void EnsureVisible(bool expandParentRows)
Parameters
System.Boolean expandParentRows

if set to true, it expands all parent rows.

FindParent<T>()

Searches up the chain of parents and returns the first one of the specified type.

Declaration
public T FindParent<T>()
    where T : IHierarchicalRow
Returns
T

Type Parameters
T

GetActualHeight(IGridView)

Calculates the actual height of the row.

Declaration
public virtual int GetActualHeight(IGridView gridView)
Parameters
IGridView gridView

Returns
System.Int32

GetErrorText(String)

Gets the error text associated with specified cell in this row.

Declaration
public string GetErrorText(string fieldName)
Parameters
System.String fieldName

The field name that specifies the cell.

Returns
System.String

The error text if successfull.

GetEventInfo(GridPropertyChangedEventArgs, out GridEventDispatchMode)

Gets the event info.

Declaration
protected virtual GridEventType GetEventInfo(GridPropertyChangedEventArgs property, out GridEventDispatchMode dispatchMode)
Parameters
GridPropertyChangedEventArgs property

The GridPropertyChangedEventArgs instance containing the event data.

GridEventDispatchMode dispatchMode

The dispatch mode.

Returns
GridEventType

HasChildRows()

Determines whether the row has child rows.

Declaration
public virtual bool HasChildRows()
Returns
System.Boolean

true if the row has child rows; otherwise, false.

InvalidateRow()

Invalidates the row visual state.

Declaration
public virtual void InvalidateRow()

OnBeginEdit()

Called when the edit operation begins.

Declaration
protected virtual bool OnBeginEdit()
Returns
System.Boolean

OnEndEdit()

Called when the edit operation ends.

Declaration
protected virtual bool OnEndEdit()
Returns
System.Boolean

OnPropertyChanged(PropertyChangedEventArgs)

Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
System.ComponentModel.PropertyChangedEventArgs args

OnPropertyChanging(PropertyChangingEventArgsEx)

Declaration
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx args)
Parameters
PropertyChangingEventArgsEx args

ResumePropertyNotifications()

Resumes property notifications after a previous SuspendPropertyNotifications() call.

Declaration
public void ResumePropertyNotifications()

SetBooleanProperty(String, Int32, Boolean)

Sets the boolean property.

Declaration
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)
Parameters
System.String propertyName

Name of the property.

System.Int32 propertyKey

The property key.

System.Boolean value

The value.

Returns
System.Boolean

SetParent(GridViewRowInfo)

Sets the parent.

Declaration
protected void SetParent(GridViewRowInfo parent)
Parameters
GridViewRowInfo parent

The parent.

SetRowStateProperty<T>(String, ref T, T)

Sets the row state property.

Declaration
protected virtual bool SetRowStateProperty<T>(string propertyName, ref T propertyField, T value)
Parameters
System.String propertyName

Name of the property.

T propertyField

The property field.

T value

The value.

Returns
System.Boolean

Type Parameters
T

The type of the T.

SuspendPropertyNotifications()

Allows PropertyChanging and PropertyChanged notifications to be temporary suspended.

Declaration
public void SuspendPropertyNotifications()

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

PropertyChanging

Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Type
PropertyChangingEventHandlerEx

Implements
INotifyPropertyChangingEx.PropertyChanging

Explicit Interface Implementations

IDataItem.DataBoundItem

Declaration
object IDataItem.DataBoundItem { get; set; }
Returns
System.Object

Implements
IDataItem.DataBoundItem

IDataItem.FieldCount

Declaration
int IDataItem.FieldCount { get; }
Returns
System.Int32

Implements
IDataItem.FieldCount

IDataItem.get_Item(Int32)

Declaration
object IDataItem.get_Item(int index)
Parameters
System.Int32 index

Returns
System.Object

Implements
Telerik.WinControls.Data.IDataItem.get_Item(System.Int32)

IDataItem.get_Item(String)

Declaration
object IDataItem.get_Item(string name)
Parameters
System.String name

Returns
System.Object

Implements
Telerik.WinControls.Data.IDataItem.get_Item(System.String)

IDataItem.IndexOf(String)

Declaration
int IDataItem.IndexOf(string name)
Parameters
System.String name

Returns
System.Int32

Implements
IDataItem.IndexOf(String)

IDataItem.Item[Int32]

Declaration
object IDataItem.this[] { get; set; }
Parameters
System.Int32 index

Returns
System.Object

Implements
IDataItem.Item[Int32]

IDataItem.Item[String]

Declaration
object IDataItem.this[] { get; set; }
Parameters
System.String name

Returns
System.Object

Implements
IDataItem.Item[String]

IDataItem.set_Item(Int32, Object)

Declaration
void IDataItem.set_Item(int index, object value)
Parameters
System.Int32 index

System.Object value

Implements
Telerik.WinControls.Data.IDataItem.set_Item(System.Int32, System.Object)

IDataItem.set_Item(String, Object)

Declaration
void IDataItem.set_Item(string name, object value)
Parameters
System.String name

System.Object value

Implements
Telerik.WinControls.Data.IDataItem.set_Item(System.String, System.Object)

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.