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 a new row in grid control

Thread ID:

Created:

Updated:

Platform:

Replies:

71039 Jan 12,2008 10:38 AM UTC Jan 14,2008 12:03 AM UTC WinForms 1
loading
Tags: GridControl
venkataramu c
Asked On January 12, 2008 10:38 AM UTC

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 14, 2008 12:03 AM UTC

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.

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

;