The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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)