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 insert row at particular row index?

Thread ID:

Created:

Updated:

Platform:

Replies:

117568 Nov 10,2014 07:37 AM UTC Nov 11,2014 04:51 AM UTC WinForms 1
loading
Tags: GridGroupingControl
Paurnima
Asked On November 10, 2014 07:37 AM UTC

Hi,
I am using grid grouping control ,
I want to insert new row at particular row index.
Is any solution regarding this?

Regards ,
Paurnima.

Maniratheenam Sehar [Syncfusion]
Replied On November 11, 2014 04:51 AM UTC

Hi Paurnima

 

Thanks for using Syncfusion product.

 

 

 

Query:

How to insert row at particular row index?

For inserting or appending a record to the Grid, we have to access the DataSource of the Grid as DataTable and we can add a new row in that, and again we can binded it to the Grid.

 

Please refer the below code snippet which illustartes this:

 

DataTable dt = this.GridGroupingControl1.DataSource as DataTable;

DataRow dr5 = dt.NewRow();

dr5[0] = "6";

dr5[1] = " rachel";

dr5[2] = "1";

dt.Rows.Add(dr5);

this.GridGroupingControl1.DataSource = dt;

 

Please refer the sample from the below link which illustartes this:

 

http://websamples.syncfusion.com/samples/Grid.Web/6.2.0.40/Grid_Web_AddNewRow/main.htm

 

 

 

 

Please let me know if you have any other concerns.

 

Regards,

ManiRatheenam S


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

;