title: How to access datagrid template column textbox text WPF C#
body: <p>I need to  access the text in a <code>DataGrid</code>'s template column  from code behind, but I don't know how. I need to change the text to whatever string I pass to it on the <code>SelectionChanged</code> event. Can someone please tell me how to achieve this? I found a similar question <a href="https://stackoverflow.com/questions/16997173/wpf-set-the-content-of-datagrids-selected-templatecolumns-textbox?noredirect=1#comment24557867_16997173">here</a>
  but it had no answers.</p>