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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Add new row

Thread ID:





45427 Jun 20,2006 07:17 PM UTC Jun 22,2006 08:47 PM UTC WinForms 2
Tags: GridControl
Asked On June 20, 2006 07:17 PM UTC

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

Replied On June 22, 2006 08:47 PM UTC

This works Thanks!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon