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

How to add empty row in between exsting rows of a grid like excel

Thread ID:





83605 Jun 26,2009 05:38 AM UTC Jun 26,2009 02:01 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On June 26, 2009 05:38 AM UTC


I want to know that if i want to add an empty row in middle of 10 existing rows in a grid for example. What should i do ?

Rajadurai C [Syncfusion]
Replied On June 26, 2009 02:01 PM UTC

Hi Natasha,

Thanks for your interest in Syncfusion Products.

If you would like to add an empty row in the middle of the grid, it can be achieved by adding a row to the binded datasource. Please refer to the following code that adds a new row through datatable binded to grid at specific index.

DataRow r = dt.NewRow();//dt is datatable binded to grid
dt.Rows.InsertAt(r, 3);

This adds a new row at rowindex 3.



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