Is it possible to switch rows and columns in a datagridview?

前端 未结 5 751
夕颜
夕颜 2020-12-03 22:35

I have 10 records of data in a DataTable which has 3 fields \"Foo\", \"Bar\", and \"Baz\".

If I connect wire this into a DataGridView I see 10 rows and 3 columns, an

5条回答
  •  忘掉有多难
    2020-12-03 23:11

    You can do this by programmatically adding the number of columns you need (e.g., 7 more to make 10) then programmatically swapping row, col with col, row.

提交回复
热议问题