I have a wpf datagrid with 2 columns (ProductID and Description). ProductID column is a combobox and the Description is a Textbox. On the SelectionChanged event of the ProductID, I want to assign a value to the Description column. I need to know how to assign the value to the Description textbox for the row of the combobox that fired the SelectionChanged event. Can someone please provide a sample code? This seems so simple but I can’t find an answer. Thanks
I have a wpf datagrid with 2 columns (ProductID and Description). ProductID column is
Share
A better way to do this is by using Binding to Properties like
To add an EventHandler for the SelectionChanged event of the ComboBox you could do this but I wouldn’t recommend it.
And in code behind