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. Image for the cookie policy date

DataBoundGrid add row

I have DataBoundGrid with a dataset as Datasource. How to insert an added row in my grid in my SQLServer database?

1 Reply

AD Administrator Syncfusion Team November 17, 2004 03:14 PM UTC

You can add a row by calling grid.Binder.AddNew(). But inserting a row is problematic. Even if you insert a row outside the grid using dataTable1.Rows.Insert, it is added at the end of the DataTable.DefaultView until DataTable.AcceptChanges is called. So, if you want to insert a row, I think you will have to use DataTable.Rows.Insert, followed by dataTable.AcceptChanges.

Live Chat Icon For mobile
Up arrow icon