skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact 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 Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free 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 GridViewInfo

This class contains logical information about visual presentation of flat tabular data in RadGridView.

Inheritance
System.Object
GridViewInfo
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 class GridViewInfo

Constructors

GridViewInfo(GridViewTemplate)

Initializes a new instance of the GridViewInfo class.

Declaration
public GridViewInfo(GridViewTemplate ownerTemplate)
Parameters
GridViewTemplate ownerTemplate

The GridViewTemplate which this view corresponds to.

GridViewInfo(GridViewTemplate, GridViewHierarchyRowInfo)

Initializes a new instance of the GridViewInfo class.

Declaration
public GridViewInfo(GridViewTemplate ownerTemplate, GridViewHierarchyRowInfo parentRow)
Parameters
GridViewTemplate ownerTemplate

The owner template that this view corresponds to.

GridViewHierarchyRowInfo parentRow

The parent row in a hierarchical structure.

Properties

ChildRows

Gets the rows in this view.

Declaration
public GridViewChildRowCollection ChildRows { get; }
Property Value
GridViewChildRowCollection

The collection of child rows.

CurrentIndex

Gets the index of the CurrentRow in the currently selected group.

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

The zero-based index of the current row, or -1 if there is no current row.

CurrentRow

Gets or sets the current row of the current view.

Declaration
public GridViewRowInfo CurrentRow { get; set; }
Property Value
GridViewRowInfo

The current row, or null if no row is current.

NeedsRefresh

Gets a value that indicates whether the ChildRows collection of GridViewInfo needs to be refreshed.

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

true if the child rows need to be refreshed; otherwise, false.

ParentRow

Gets the parent GridViewRowInfo which the current view is linked to.

Declaration
public GridViewHierarchyRowInfo ParentRow { get; }
Property Value
GridViewHierarchyRowInfo

The parent row in a hierarchical structure, or null if this is the root view.

PinnedRows

Gets a readonly collection of GridViewRowInfo containing the pinned rows in this view.

Declaration
public GridViewPinnedRowCollection PinnedRows { get; }
Property Value
GridViewPinnedRowCollection

The collection of pinned rows.

Rows

Gets the rows in this view.

Declaration
public GridViewChildRowCollection Rows { get; }
Property Value
GridViewChildRowCollection

The collection of rows.

SummaryRows

Gets a readonly collection of GridViewSummaryRowInfo containing the summary rows in this view.

Declaration
public GridViewSummaryRowCollection SummaryRows { get; }
Property Value
GridViewSummaryRowCollection

The collection of summary rows.

SystemRows

Gets a readonly collection of GridViewRowInfo containing the system rows in this view.

Declaration
public GridViewSystemRowCollection SystemRows { get; }
Property Value
GridViewSystemRowCollection

The collection of system rows including header, filtering, search, and add new rows.

TableAddNewRow

Gets the instance of GridViewNewRowInfo for the current view. This row represents the row which is used by users to add new data.

Declaration
public GridViewNewRowInfo TableAddNewRow { get; }
Property Value
GridViewNewRowInfo

The table add new row information.

TableFilteringRow

Gets the instance of GridViewFilteringRowInfo representing the filtering row for the current view.

Declaration
public GridViewFilteringRowInfo TableFilteringRow { get; }
Property Value
GridViewFilteringRowInfo

The table filtering row information.

TableHeaderRow

Gets the instance of GridViewTableHeaderRowInfo representing the header row for the current view.

Declaration
public GridViewTableHeaderRowInfo TableHeaderRow { get; }
Property Value
GridViewTableHeaderRowInfo

The table header row information.

TableSearchRow

Gets the instance of GridViewSearchRowInfo for the current view. This row represents the row which is used by users to search through the data inside RadGridView.

Declaration
public GridViewSearchRowInfo TableSearchRow { get; }
Property Value
GridViewSearchRowInfo

The table search row information.

ViewTemplate

Gets the instance of GridViewTemplate which the current view corresponds to.

Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
GridViewTemplate

The view template that owns this grid view information.

Methods

CreateAddNewRow()

Creates the add new row for this view.

Declaration
protected virtual GridViewNewRowInfo CreateAddNewRow()
Returns
GridViewNewRowInfo

A new instance of GridViewNewRowInfo.

CreateFilteringRow()

Creates the filtering row for this view.

Declaration
protected virtual GridViewFilteringRowInfo CreateFilteringRow()
Returns
GridViewFilteringRowInfo

A new instance of GridViewFilteringRowInfo.

CreateSearchRow()

Creates the search row for this view.

Declaration
protected virtual GridViewSearchRowInfo CreateSearchRow()
Returns
GridViewSearchRowInfo

A new instance of GridViewSearchRowInfo.

CreateTableHeaderRow()

Creates the table header row for this view.

Declaration
protected virtual GridViewTableHeaderRowInfo CreateTableHeaderRow()
Returns
GridViewTableHeaderRowInfo

A new instance of GridViewTableHeaderRowInfo.

EnsureVisible()

Ensures that this view is visible in the hierarchy by expanding parent rows if necessary.

Declaration
public void EnsureVisible()

FindGroupParent(GridViewRowInfo)

Finds the group parent for the specified row information.

Declaration
protected virtual IHierarchicalRow FindGroupParent(GridViewRowInfo rowInfo)
Parameters
GridViewRowInfo rowInfo

The row information to find the group parent for.

Returns
IHierarchicalRow

The group parent row, or null if not found.

FindParent(GridViewRowInfo)

Finds the parent of the specified GridViewRowInfo instance.

Declaration
public IHierarchicalRow FindParent(GridViewRowInfo rowInfo)
Parameters
GridViewRowInfo rowInfo

The row information to find the parent for.

Returns
IHierarchicalRow

The parent of the specified GridViewRowInfo instance.

Exceptions
System.ArgumentNullException

Thrown when rowInfo is null.

System.InvalidOperationException

Thrown when the row info is owned by another view.

HasChildRows()

Determines whether this view has child rows to display.

Declaration
public bool HasChildRows()
Returns
System.Boolean

true if there are child rows, system rows, or other content to display; otherwise, false.

InitializeTableAddNewRow()

Initializes the table add new row if it hasn't been created yet.

Declaration
protected virtual void InitializeTableAddNewRow()

InitializeTableFilteringRow()

Initializes the table filtering row if it hasn't been created yet.

Declaration
protected virtual void InitializeTableFilteringRow()

InitializeTableHeaderRow()

Initializes the table header row if it hasn't been created yet.

Declaration
protected virtual void InitializeTableHeaderRow()

InitializeTableSearchRow()

Initializes the table search row if it hasn't been created yet.

Declaration
protected virtual void InitializeTableSearchRow()

LoadHierarchicalData(GridViewHierarchyRowInfo, ICollectionView<GridViewRowInfo>)

Loads the hierarchical data for the specified parent row.

Declaration
protected ICollectionView<GridViewRowInfo> LoadHierarchicalData(GridViewHierarchyRowInfo parent, ICollectionView<GridViewRowInfo> sourceView)
Parameters
GridViewHierarchyRowInfo parent

The parent row to load data for.

ICollectionView<GridViewRowInfo> sourceView

The source collection view.

Returns
ICollectionView<GridViewRowInfo>

The loaded hierarchical data collection view.

Refresh()

Refreshes the ChildRows collection of this GridViewInfo.

Declaration
public virtual void Refresh()

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.