Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Get and set the focus to a specific cell on the grid

Sort Posts: Previous Next
  •  06-19-2008, 5:23 AM Post no. 13075

    Get and set the focus to a specific cell on the grid

    Is there a way to know what cell is focused? After modifying some records with a validation rule, my idea is to change the DataContext property with the copy of data (so the display will reload with all the changes) and then set the focus on the corresponding cell by code.

     In this way, the user can continue using the keyboard for editing.

     Anyone can help me?

     
    Thanks in advance Smile
     

    Filed under: , ,
  •  06-25-2008, 6:47 PM Post no. 13223 in reply to 13075

    Re: Get and set the focus to a specific cell on the grid

    You can keep a reference to the CurrentItem and reset it after you have change the DataContext. Keep in mind that this may not work if the items being reloaded are different than the ones that were previously contained in the grid.

    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.