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
80
How to setup different editor base on value from other column
posted

Hi,

   I need to have an editor: combo box (if flag in other column is 'Y') or text box (otherwise). I know how to define any of this editor for cell but I don't know how to choose one of them dynamically base on some conditions

Thanks for any solutions/ideas

 

Parents
  • 69686
    posted

    Hello,

    You would have to retemplate the CellValuePresenter and manipulate the visibility of the two editors depending on the value of another cell. You can either do this with DataTriggers in the control template, or programatically in the EditModeEnded/CellUpdated, etc. events.
    Let me know if you need further assistance with this matter. 

Reply Children