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

"Append Row" in GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

29800 Jun 2,2005 10:29 PM UTC Jun 3,2005 08:19 AM UTC WinForms 3
loading
Tags: GridControl
Lori S. Pearsall
Asked On June 2, 2005 10:29 PM UTC

I''m attempting to force the CurrentCell to the first data column when the user either clicks on the "append row" in the grid or uses the "*" button in the grid''s GridRecordNavigationControl. I''ve put code in the RowEnter event to check to see if the append row is the one being entered. Then, I do a CurrentCell.MoveTo to try to move to the first data column. However, the MoveTo returns a false indicating that the move failed. How can I change the column of the CurrentCell?

Administrator [Syncfusion]
Replied On June 3, 2005 12:41 AM UTC

Try handling the CurrentCellActivating event. In your handler, if e.RowIndex points to the append row, then set e.ColIndex = 1.

Lori S. Pearsall
Replied On June 3, 2005 01:00 AM UTC

Hi Clay, I was trying to handle this in the RowEnter because I only want to move to the first data column when I first enter the row. If I use CurrentCellActivating, I''ll always move to the first data column - even if I''m already on the row and am tabbing to a new column. Does that make sense? How would I do this? Thanks as always! >Try handling the CurrentCellActivating event. In your handler, if e.RowIndex points to the append row, then set e.ColIndex = 1.

Administrator [Syncfusion]
Replied On June 3, 2005 08:19 AM UTC

CurrentCellActivating is the best place to redirect the ColIndex. Since you only want to do it once, set a flag to be true in RowEnter. Then in CurrentCellActivating, only redirect the e.ColIndex if this flag is true and e.RowIndex is the last row, and then reset the flag to false.

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

;