title: How can I set the binding of a DataGridTextColumn in code?
body: <p>I'm using the toolkit:DataGrid from CodePlex.</p>
  
  <p>I'm generating the columns in code.</p>
  
  <p>How can I set the equivalent of <strong>{Binding FirstName}</strong> in code?</p>
  
  <p>Or alternatively, how can I just <strong>set the value</strong>, that's all I need to do, not necessarily bind it. I just want the value from my model property in the cell in the datagrid.</p>
  
  <pre><code>DataGridTextColumn dgtc = new DataGridTextColumn();
  dgtc.Header = smartFormField.Label;
  dgtc.Binding = BindingBase.Path = "FirstName"; //PSEUDO-CODE
  dgtc.CellValue= "Jim"; //PSEUDO-CODE
  CodePlexDataGrid.Columns.Add(dgtc);
  </code></pre>