0

Possible Duplicate:
C#/WPF: Toolkit DataGrid - Transpose rows and columns

I would like to create a DataGridView from a DataTable, composed of internally calculated data, which is the transposed version of the usual dataGrid.

I mean, I would like to have my titles in the first column, each in a row. And would like to add data in new rows.

Is that possible?

Community
  • 1
  • 1
jpnavarini
  • 763
  • 4
  • 13
  • 25

1 Answers1

0

It is possible, but it may require some custom code (unfortunately).

user978122
  • 5,531
  • 7
  • 33
  • 41
  • My main doubt is how to make the column titles become row titles. – jpnavarini Nov 16 '11 at 03:47
  • Just iterate through DataTable.Column[], grabbing the name as you go. Then add them as the first entry in the applicable row. Again, it takes some custom code, but should work. – user978122 Nov 16 '11 at 04:17