GridGroupingControl - Add new row

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.

2 Replies

AD Administrator 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


SH shailaja June 22, 2006 08:47 PM UTC

This works Thanks!

Loader.
Up arrow icon