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:

Created:

Updated:

Platform:

Replies:

71039 Jan 12,2008 05:38 AM Jan 13,2008 07:03 PM Windows Forms 1
loading
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.
Regards
venkat.



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:


this.gridControl1.Model.Data.RowCount++;


Please refer the sample and letus know if this helps.
http://websamples.syncfusion.com/samples/Grid.Windows/F71039/main.htm

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.




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.

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.

;