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.
Using sub records in a grouping grid, a "+" is displayed next to every record in the top most dataset, even when there are no records contained in the subrecords for it. Can this behavior be worked around?
ADAdministrator Syncfusion Team February 23, 2004 04:56 PM UTC
Randy,
Try handling the QueryCellStyleInfo event as follows:
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordPlusMinusCell)
{
Record r = e.TableCellIdentity.DisplayElement.ParentRecord as Record;
if (r != null && r.NestedTables.Count > 0 && r.NestedTables[0].ChildTable.GetFilteredRecordCount() == 0)
{
e.Style.CellType = "Static";
}
}
}
Then, no button should be displayed.
Let me know if you run into problems.
Thanks,
Stefan Hoenig