title: DataTable as DataGrid.ItemsSource
body: <p>hi i want to bind a <code>DataTable</code> with multiple columns to an <code>DataGrid</code> in codebehind</p>
  
  <pre><code>    var dt = new DataTable();
  
      dt.Columns.Add(new DataColumn("1"));
      dt.Columns.Add(new DataColumn("2"));
      dt.Columns.Add(new DataColumn("3"));
  
      dt.Rows.Add(ff.Mo);
      dt.Rows.Add(ff.Di);
      dt.Rows.Add(ff.Mi);
      dt.Rows.Add(ff.Do);
      dt.Rows.Add(ff.Fr);
      dt.Rows.Add(ff.Sa);
      dt.Rows.Add(ff.So);
  // ff is a object that contains List&lt;myCellObj&gt;
  
  DataGrid DGrid = new DataGrid();
  for (int i = 0; i &lt; 3; i++)
  {
     DataGridTemplateColumn templateColumn = new DataGridTemplateColumn();
     templateColumn.HeaderTemplate = HeaderDt;
     templateColumn.CellTemplate = ItemDt; //specified DataTemplate for myCellObj
  
     DGrid.Columns.Add(templateColumn);
  }
  </code></pre>
  
  <p>now how do i set my <code>dt</code> as <code>ItemsSource</code>, <code>Datacontext</code> or what ever to get it in to my <code>View</code>
  also if you could provide me a way to bind directly to my <code>Object ff</code> </p>
  
  <p>anything that could help is greatly appreciated</p>