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

Add new record using a push button click

Thread ID:





125236 Aug 2,2016 06:44 AM UTC Aug 10,2016 05:29 AM UTC WinForms 5
Tags: GridGroupingControl
Asked On August 2, 2016 06:44 AM UTC


How i can add a record manually to the gcc when i clicked a push button. 
I have put a pushbutton to the end of the add new record row. currently it's automatically add when user fill the data in the row. But i nee to add this record within my pushbutton clicked event.

How do i do this?

Sumudu Ekanayake

Amal Raj Umapathy Selvam [Syncfusion]
Replied On August 3, 2016 12:57 PM UTC

Hi Sumudu, 

Thanks for using Syncfusion products. 

In order to add new record when PushButton in last column of the AddNewRecord is clicked, EndEdit() method can be used. Please make use of the below code. 

Code Snippet 
//event hookup. 
this.gridGroupingControl1.TableControlPushButtonClick += new GridTableControlCellPushButtonClickEventHandler(gridGroupingControl1_TableControlPushButtonClick); 

void gridGroupingControl1_TableControlPushButtonClick(object sender, GridTableControlCellPushButtonClickEventArgs e) 
    //to add record on button click. 

Sample Link 

Amal Raj U. 

Replied On August 8, 2016 11:59 AM UTC

Great...!! It's working.

Thanks & Regards,

Amal Raj Umapathy Selvam [Syncfusion]
Replied On August 9, 2016 04:04 AM UTC

Hi Sumudu, 
Thanks for your update. 
We are glad to know that the given solution has solved your query. Please let us know, If you need any further assistance. 
Amal Raj U. 

Replied On August 9, 2016 04:32 AM UTC

Yes. It's worked for me.

Thanks & Regards,

Gangabharathy Murugasen [Syncfusion]
Replied On August 10, 2016 05:29 AM UTC

Hi Sumudu, 
Thanks for the update. 
M. Gangabharathy 


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

or the page will be automatically redirected to 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