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 would like to allow a user to display data from a datatable and in option to display the data in hierarchical format. The scenario is : 1- I Init the gdbg with a datatable. 2- Dynamically, I display the data in hierachical format by adding relations ... 3- I remove all relations, and I display the data in a non hierachical format. All this works fine. 4- But when I try to re-display the data in hierachical format, it doesn't work. I have an empty grid.
The source code is :
------------------------------------------------- // Display Hierarchical Data public void GroupBy(String colname) { this.internalGrid.BeginUpdate(); this.internalGrid.BeginInit(); this.internalGrid.ShowTreeLines = true; this.internalGrid.Binder.ResetHierarchyLevels(); this.internalGrid.IndentHierarchies = true;
ADAdministrator Syncfusion Team October 27, 2006 12:22 PM UTC
Hi Sim,
To show the relation in a grid( after changing the relation to underlying datasource), you need to call the AddRelation method. Below is a code snippet