With a datagrid, I want to use a databound combobox to set the value of a property with the combobox’s selected value. How would I go about doing that?
Cheers
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This can easily be achieved using the WPF DataGrid’s CellTemplate features:
Now just handle the ComboBox SelectionChanged event and force a Commit by giving the DataGrid keyboard focus 🙂
Have fun.