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

new row

Thread ID:





39978 Jan 23,2006 10:14 AM UTC Jan 23,2006 02:04 PM UTC WinForms 1
Tags: GridControl
Asked On January 23, 2006 10:14 AM UTC

Hello all, i''m trying to add a new blank row in a grid control when user types in the last row. i''m using the currentcellchanging event and increment the value of rowcount property. to cancel the selection of the newly added row, i handle the currentcellmoving too and cancel it. the problem is that the first typed character does not appear i don''t know if that''s the best method to have always a blank row in a grid control without databind thankyou all

Administrator [Syncfusion]
Replied On January 23, 2006 02:04 PM UTC

Hi mopicus, You can use the CurrentCellKeyPress Event for adding new row. Here is the Code snippet private void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; if (cc.RowIndex == this.gridControl1.RowCount) this.gridControl1.RowCount = this.gridControl1.RowCount + 1; } Let us know if you need any assistance, Regards Madhan.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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