New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridViewInfo

Inheritance: objectGridViewInfo

Constructors

Initializes a new instance of the GridViewInfo class.

C#
public GridViewInfo(GridViewTemplate ownerTemplate, GridViewHierarchyRowInfo parentRow)
Parameters:ownerTemplateGridViewTemplate

The owner template that this view corresponds to.

parentRowGridViewHierarchyRowInfo

The parent row in a hierarchical structure.

Initializes a new instance of the GridViewInfo class.

C#
public GridViewInfo(GridViewTemplate ownerTemplate)
Parameters:ownerTemplateGridViewTemplate

The GridViewTemplate which this view corresponds to.

Properties

Gets the rows in this view.

C#
public GridViewChildRowCollection ChildRows { get; }
Property Value:

The collection of child rows.

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

C#
[Browsable(false)]
public int CurrentIndex { get; }
Property Value:

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

Gets or sets the current row of the current view.

C#
[Browsable(false)]
public GridViewRowInfo CurrentRow { get; set; }
Property Value:

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

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

C#
public virtual bool NeedsRefresh { get; }
Property Value:

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

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

C#
[Browsable(false)]
public GridViewHierarchyRowInfo ParentRow { get; }
Property Value:

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

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

C#
public GridViewPinnedRowCollection PinnedRows { get; }
Property Value:

The collection of pinned rows.

Gets the rows in this view.

C#
public GridViewChildRowCollection Rows { get; }
Property Value:

The collection of rows.

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

C#
public GridViewSummaryRowCollection SummaryRows { get; }
Property Value:

The collection of summary rows.

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

C#
[Browsable(false)]
public GridViewSystemRowCollection SystemRows { get; }
Property Value:

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

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

C#
[Browsable(false)]
public GridViewNewRowInfo TableAddNewRow { get; }
Property Value:

The table add new row information.

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

C#
[Browsable(false)]
public GridViewFilteringRowInfo TableFilteringRow { get; }
Property Value:

The table filtering row information.

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

C#
[Browsable(false)]
public GridViewTableHeaderRowInfo TableHeaderRow { get; }
Property Value:

The table header row information.

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.

C#
[Browsable(false)]
public GridViewSearchRowInfo TableSearchRow { get; }
Property Value:

The table search row information.

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

C#
[Browsable(false)]
public GridViewTemplate ViewTemplate { get; }
Property Value:

The view template that owns this grid view information.

Methods

Creates the add new row for this view.

C#
protected virtual GridViewNewRowInfo CreateAddNewRow()
Returns:

GridViewNewRowInfo

A new instance of GridViewNewRowInfo.

Creates the filtering row for this view.

C#
protected virtual GridViewFilteringRowInfo CreateFilteringRow()
Returns:

GridViewFilteringRowInfo

A new instance of GridViewFilteringRowInfo.

Creates the search row for this view.

C#
protected virtual GridViewSearchRowInfo CreateSearchRow()
Returns:

GridViewSearchRowInfo

A new instance of GridViewSearchRowInfo.

Creates the table header row for this view.

C#
protected virtual GridViewTableHeaderRowInfo CreateTableHeaderRow()
Returns:

GridViewTableHeaderRowInfo

A new instance of GridViewTableHeaderRowInfo.

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

C#
public void EnsureVisible()

Finds the group parent for the specified row information.

C#
protected virtual IHierarchicalRow FindGroupParent(GridViewRowInfo rowInfo)
Parameters:rowInfoGridViewRowInfo

The row information to find the group parent for.

Returns:

IHierarchicalRow

The group parent row, or null if not found.

Finds the parent of the specified GridViewRowInfo instance.

C#
public IHierarchicalRow FindParent(GridViewRowInfo rowInfo)
Parameters:rowInfoGridViewRowInfo

The row information to find the parent for.

Returns:

IHierarchicalRow

The parent of the specified GridViewRowInfo instance.

Exceptions:

ArgumentNullException

Thrown when rowInfo is null.

InvalidOperationException

Thrown when the row info is owned by another view.

Determines whether this view has child rows to display.

C#
[Browsable(false)]
public bool HasChildRows()
Returns:

bool

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

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

C#
protected virtual void InitializeTableAddNewRow()

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

C#
protected virtual void InitializeTableFilteringRow()

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

C#
protected virtual void InitializeTableHeaderRow()

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

C#
protected virtual void InitializeTableSearchRow()

Loads the hierarchical data for the specified parent row.

C#
protected ICollectionView<GridViewRowInfo> LoadHierarchicalData(GridViewHierarchyRowInfo parent, ICollectionView<GridViewRowInfo> sourceView)
Parameters:parentGridViewHierarchyRowInfo

The parent row to load data for.

sourceViewICollectionView<GridViewRowInfo>

The source collection view.

Returns:

ICollectionView<GridViewRowInfo>

The loaded hierarchical data collection view.

Refreshes the ChildRows collection of this GridViewInfo.

C#
public virtual void Refresh()