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.
Unfortunately, activation email could not send to your email. Please try again.

Determining which heirarchy a row is in

Thread ID:





26740 Mar 30,2005 08:34 PM Mar 31,2005 03:02 AM Windows Forms 1
Tags: GridControl
Damien Sawyer
Asked On March 30, 2005 08:34 PM

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 03:02 AM

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.

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.