)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add a new row in the Grid?

Platform: WinForms |
Control: GridDataBoundGrid(Classic) |
Published Date: September 2, 2015 |
Last Revised Date: September 2, 2015
Tags: addnewrow

To add rows or columns to the GridDataBoundGrid control, you have to add columns or rows to the DataSource, that is mapped to the GDBC control. Use the AcceptChanges() property to accept all changes in the DataSource when the rows or columns added.

The following code example demonstrates the same.

C#

 

VB

 

Note: The same procedure can be used for the Gridcontrol and GridGroupingcontrol.

 

Sample Links:

C#:AddNewRow_C#

VB: AddNewRow_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Bittu Dwivedi
Sep 25, 2019

How to do this for SfDataGrid control. I am facing problem on adding new rows through C# code ?

Reply
Susmitha Sundar [Syncfusion]
Sep 30, 2019

Hi Bittu,

We have prepared the sample to add the new row in SfDataGrid. Please refer the below link,

SfDatagrid_Sample

Regards, Susmitha S

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon