We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon