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

Adding new records to grid programatically

Thread ID:





56265 Feb 12,2007 08:33 PM UTC Feb 12,2007 09:02 PM UTC WinForms 1
Tags: GridControl
dinesh upreti
Asked On February 12, 2007 08:33 PM UTC

I am using GridGrouping control and using custom business entities to bind data.
I donot want the user to directly add the data to grid. therefore i have set the TableDescriptor AddNew property to false. However i want to be able to add a new record with some default data programatically, say on click of a button.
Can you help me on this urgently.


Administrator [Syncfusion]
Replied On February 12, 2007 09:02 PM UTC

Hi Dinesh,

Instead of setting the TableDescriptor.AllowNew property, try setting the ShowAddNewRecordBeforeDetails and ShowAddNewRecordAfterDetails property to false. And than You can use the AddNewRecord property of the GridTable to add new record in a grid. Please try the below code snippet and let me know if this helps.


Here is a sample.

Best regards,


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