We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Determining which heirarchy a row is in

Thread ID:





26740 Mar 31,2005 01:34 AM UTC Mar 31,2005 08:02 AM UTC WinForms 1
Tags: GridControl
Damien Sawyer
Asked On March 31, 2005 01:34 AM UTC

Hi, I have a grid with multiple heirarchies. Can someone please explain to me how, In the prepareviewstyleinfo event, I can tell if the current row is a ''main'' row, or one linked to the linked/child table... I''m setting up the grid like this. Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim oOrders As New clsOrders Me.grd.DataSource = oOrders Me.grd.Binder.SetDataBinding(oOrders, "") Dim childrenLevel As GridHierarchyLevel = Me.grd.Binder.AddRelation("Details") childrenLevel.ShowHeaders = True Me.grd.Binder.RootHierarchyLevel.ShowHeaders = True Me.grd.DataSource = oOrders End Sub Thanks in advance, Damien

Administrator [Syncfusion]
Replied On March 31, 2005 08:02 AM UTC

You can get the GridBoundRecordState for a given row index. This object has the information you need about the Hierarchical state of a row. It has a member LevelIndex. Dim state As GridBoundRecordState = Me.gridDataBoundGrid1.Binder.GetRecordStateAtRowIndex(e.RowIndex)


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon