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.
Am using the grouping grid.I would like to add a row to the grid on click of a button.How do I accomplish this?
The grid is NOT bound to a datatable, but to a custom entity.
ADAdministrator Syncfusion Team June 20, 2006 08:05 PM UTC
Hi Sh,
Try this code to add the record in the grouping(Datasource as custom collection). Here is a code snippet
this.groupingGrid1.BeginUpdate();
CustomerCollection cc = this.groupingGrid1.DataSource as CustomerCollection ;
cc.Add(new Customer("22222333"));
this.groupingGrid1.EndUpdate(true);
this.groupingGrid1.Reinitialize();
this.groupingGrid1.Refresh();
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/CustomEntity_18d629d5.zip
Let me know if this helps.
Best Regards,
Haneef