• Product Bundles

    DevCraft

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

    • Conversational UI
    • 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 Xamarin
    Desktop
    UI for WinForms UI for WPF UI for WinUI UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore Fiddler Everywhere
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler Classic JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • 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.

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

Was this article helpful?

Tell us how we can improve this article

Skip
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.