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 GridViewRelation

Represents a master-detail relation between two GridViewTemplates based on their column or field names.

Inheritance
System.Object
GridViewRelation
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 GridViewRelation : INotifyPropertyChanged, ICloneable, IComparable

Constructors

GridViewRelation()

Initializes a new instance of the GridViewRelation class.

Declaration
public GridViewRelation()

GridViewRelation(GridViewTemplate)

Initializes a new instance of the GridViewRelation class.

Declaration
public GridViewRelation(GridViewTemplate parent)
Parameters
GridViewTemplate parent

An instance of GridViewTemplate which is parent in the relation.

GridViewRelation(GridViewTemplate, GridViewTemplate)

Initializes a new instance of the GridViewRelation class.

Declaration
public GridViewRelation(GridViewTemplate parentTemplate, GridViewTemplate childTemplate)
Parameters
GridViewTemplate parentTemplate

The parent template.

GridViewTemplate childTemplate

The child template.

Properties

ChildColumnNames

Gets or sets a System.Collections.Specialized.StringCollection containing the names of the columns in the datails data source that takes part in the relation.

Declaration
public StringCollection ChildColumnNames { get; set; }
Property Value
System.Collections.Specialized.StringCollection

ChildTemplate

Gets or sets the child GridViewTemplate in the master-detail relation.

Declaration
public GridViewTemplate ChildTemplate { get; set; }
Property Value
GridViewTemplate

IsObjectRelational

Gets a value indicating whether this instance is object relational.

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

true if this instance is object relational; otherwise, false.

IsSelfReference

Gets a value indicating whether this is self reference relation.

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

true if this relation is self reference; otherwise, false.

IsSelfReferenceLoadOnDemand

Gets a value indicating whether this is self reference relation with load on demand.

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

true if this relation is self reference with load on demand; otherwise, false.

IsValid

Gets a value indicating whether this instance is valid.

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

true if this instance is valid; otherwise, false.

ParentColumnNames

Gets or sets a System.Collections.Specialized.StringCollection containing the names of the columns in the master data source that takes part in the relation.

Declaration
public StringCollection ParentColumnNames { get; set; }
Property Value
System.Collections.Specialized.StringCollection

ParentTemplate

Gets or sets the parent GridViewTemplate in the master-detail relation.

Declaration
public GridViewTemplate ParentTemplate { get; set; }
Property Value
GridViewTemplate

RelationName

Gets or sets the name of the relation.

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

Methods

CompareTo(Object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Declaration
public int CompareTo(object obj)
Parameters
System.Object obj

An object to compare with this instance.

Returns
System.Int32

A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes obj in the sort order. Zero This instance occurs in the same position in the sort order as obj. Greater than zero This instance follows obj in the sort order.

Implements
System.IComparable.CompareTo(System.Object)
Exceptions
System.ArgumentException

obj is not the same type as this instance.

CopyTo(GridViewRelation)

Copies to the specific relation.

Declaration
public void CopyTo(GridViewRelation relation)
Parameters
GridViewRelation relation

The relation.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event

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

A System.ComponentModel.PropertyChangedEventArgs instance containing event data.

Events

PropertyChanged

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

Explicit Interface Implementations

ICloneable.Clone()

Declaration
object ICloneable.Clone()
Returns
System.Object

Implements
System.ICloneable.Clone()

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.