title: C#/WPF: Toolkit DataGrid - Transpose rows and columns
body: <p>I've a </p>
  
  <pre><code>List&lt;DetailObject&gt; someList;
  </code></pre>
  
  <p>which looks like this:  </p>
  
  <pre><code>    public class DetailObject
      {
          public string Titel { get; set; }
          public int Value1 { get; set; }
          public int Value2 { get; set; }
          public int Value3 { get; set; }
      }
  </code></pre>
  
  <p>Does anyone know how I can use (with DataGrid.AutoGenerateColumns="True") the value of 'string Titel' as RowHeader and other members as "Row" Content? Without any modifications, it'll show me "Titel" as ColumnHeader and the value of Titel as row, dito for
  "Value1" as ColumnHeader and the value(s) of Value1 as Rows etc.</p>
  
  <p>Thanks for any help!</p>
  
  <p>Cheers</p>
  
  <p>EDIT:
  For better understanding, this is what I have  </p>
  
  <pre><code>[Titel]       [Value1]       [Value2]       [Value3]
  [Item1.Titel] [Item1.Value1] [Item1.Value2] [Item1.Value3] 
  [Item2.Titel] [Item2.Value1] [Item2.Value2] [Item2.Value3] 
  [Item3.Titel] [Item3.Value1] [Item3.Value2] [Item3.Value3] 
  </code></pre>
  
  <p>and this is what I'm looking for: </p>
  
  <pre><code>[Item1.Titel]  [Item2.Titel]  [Item3.Titel] 
  [Item1.Value1] [Item2.Value1] [Item3.Value1]
  [Item1.Value2] [Item2.Value2] [Item3.Value2]
  [Item1.Value3] [Item2.Value3] [Item3.Value3]
  </code></pre>
  
  <p>EDIT2:
  I found also a nice approach here:
  <a href="http://codemaverick.blogspot.com/2008/02/transpose-datagrid-or-gridview-by.html" rel="noreferrer">http://codemaverick.blogspot.com/2008/02/transpose-datagrid-or-gridview-by.html</a></p>