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.
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:

Created:

Updated:

Platform:

Replies:

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

Hi

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);
dt.AcceptChanges();

This adds a new row at rowindex 3.

Regards,
Rajadurai

CONFIRMATION

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.

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

;