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.

How to add a new row in grid control

Thread ID:





71039 Jan 12,2008 05:38 AM Jan 13,2008 07:03 PM Windows Forms 1
Tags: GridControl
venkataramu c
Asked On January 12, 2008 05:38 AM

Hi Friends
I using syncfusion grid control. in this grid control statring contating 3 rows . in that i am deleting last row by using the below method
int index = this.gridcontrol1.CurrentCell.RowIndex;
this.gridcontrol1.Rows.RemoveRange(index, index);

then i am adding one more but it throwing an error like
Specified argument was out of the range of valid values.
Parameter name: rowIndex
please Help me.

Jeba S [Syncfusion]
Replied On January 13, 2008 07:03 PM

Hi Venkataramu,

You can add new rows in the GridControl by increasing the row count. Below is the code snippet:


Please refer the sample and letus know if this helps.

Kindly let us know if you need any further assistance.

Best Regards,


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.

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.