Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
Accessing the underlying ComboBox?
posted

I'm handling the Preview KeyDown event on the grid, is there anyway from this I can access the underlying combobox from the active cell along with it's values, selected index etc as I'd like to implement my own shortcuts onto it.

Thanks

  • 715
    posted in reply to John Doe

    Thanks

  • 69686
    Verified Answer
    posted

    Hello,

    If there is an active cell, and you want to access it, you can do that through the XamDataGrid.ActiveCell property. From there, you can get the CellValuePresenter from that cell with the static method :

    CellValuePresenter.FromCell(...);

    The CellValuePresenter exposes the Editor via the Editor property.