Convert dynamic DataTable Columns to Rows and Rows to Columns using C# and VB.Net in ASP.Net

Last Reply one year ago By pandeyism

Posted one year ago


i am using this snippet instead of dummy data on page how can i pass my query

Rotate ASP.Net GridView - Convert GridView Columns to Rows and Rows to Columns

in this snippet it has only 3 column but in my case i have unknow numbers of coulms so based each user name can multiple columns so i want to transpose it to column

result is like

username  column 1 column 2 coulumn 3    column4

A                  a             b             c

B                  a             b              c

coloumn names are unknows so it should dynamicall get the row and pass it to column

This question does not have replies that have been liked.