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''m using a hierarchical GDBG and adding rows programatically. When a row is added which has no children, how do I stop the plus symbol appearing next to the row by default?
Cheers
Chris
ADAdministrator Syncfusion Team June 22, 2004 12:07 PM UTC
You can remove it by calling grid.ExpandRowAtRowIndex on your new row.
DataRow dr = parentTable.NewRow();
parentTable.Rows.Add(dr);
int newRowIndex = this.gridDataBoundGrid1.Model.RowCount - 1;
this.gridDataBoundGrid1.ExpandAtRowIndex(newRowIndex);
this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(newRowIndex, 1));
ADAdministrator Syncfusion Team November 19, 2004 06:59 AM UTC
I''ve got this method to work but it''s less than ideal. Every time the grid is reset, e.g. when sorted, all my rows with children are expanded. To alleviate this I will need to track the expanded state of every row, something the grid should be doing.
Has this been improved in SyncFusion 3.0? I''ve read the release notes and couldn''t see anything.
Thanks,
Ben.
ADAdministrator Syncfusion Team November 19, 2004 07:37 AM UTC
No, this behavior is the same in 3.0.
The GridGroupingControl will persist expands through a sort.
For a GridDataBoundGrid, as you said, you would have to handle this yourself. Here is a forum thread discussing how you can do it with a sample. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=16065