Welcome to the Xceed Community | Help
Community Search  
More Search Options

Move to next cell after edit

Sort Posts: Previous Next
  •  02-03-2010, 10:16 AM Post no. 25644

    Move to next cell after edit

    I would like to automatically move to the next cell when the user presses the Enter key at the completion of a cell edit (like Excel).

    Filed under:
  •  02-03-2010, 12:59 PM Post no. 25650 in reply to 25644

    Re: Move to next cell after edit

    Hi Morgan,

    You can handle the DataCell’s KeyDown event, check whether an enter key was triggered then set the next cell as current using The CurrentCell property of the GridControl.


    Xceed - Software Developer and Technical Support
  •  02-03-2010, 1:43 PM Post no. 25652 in reply to 25650

    Re: Move to next cell after edit

    Could you give me an example?  I am not sure how to access the DataCell's KeyDown event.
  •  02-05-2010, 3:17 PM Post no. 25680 in reply to 25652

    Re: Move to next cell after edit

    Hi,

    We are not sure what you mean by moving to 'the next cell'. 

    Do you want the user not to move to the next (insertion) row when the user press Enter if other cells on the right are still empty, but perhaps you want to move to the next insertion row if all the cells are filled?   And if Enter is pressed when you're at the extreme right of the row, but if some cells that are still empty of the left, you go to the empty cells first instead of adding a new insertion row?  

    This is a complex question and a "code example" could take anything from a couple of lines to more than a hundred lines, depending of several factors. 

    Regards

     


    Ghislain
    Technical Support and software developer
    Xceed Software Inc.
    Knowledge Base : http://xceed.com/kb/
    Update Center : http://xceed.com/updates/
    Documentation Center : http://xceed.com/doc/
    For everything else, there is Google
  •  02-08-2010, 8:29 AM Post no. 25691 in reply to 25680

    Re: Move to next cell after edit

    When the user is finished editing a cell and presses Enter, I want the next cell to the right to be the new CurrentCell.  Something similar to the way EXCEL behaves, but instead of moving down I want to move across.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.