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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl - Add new row

Thread ID:

Created:

Updated:

Platform:

Replies:

45427 Jun 20,2006 03:17 PM Jun 22,2006 04:47 PM Windows Forms 2
loading
Tags: GridControl
shailaja
Asked On June 20, 2006 03:17 PM

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.

Administrator [Syncfusion]
Replied On June 20, 2006 04:05 PM

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

shailaja
Replied On June 22, 2006 04:47 PM

This works Thanks!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;