not any easy way that's for sure ... you can do it through ASP though or if you can get your data into an two-dimensional array... loop through rows for each columns rather than columns for each row... so instead of (assuming DATA[x,y] where x is the column and y is the rowfor (int y=0; y<DATA.GetLength(1); y++) { for (int x=0; x<DATA.GetLength(0); x++) { // Do something... }}/* Assuming output would be like: y=0:x=1,x=2,x=n,... y=1:x=1,x=2,x=n,... | Column1 | ColumnN | -----+---------+---------+ Row1 | Value1 | ValueN | RowN | Value1 | ValueN |*/try this instead:for (int x=0; x<DATA.GetLength(0); x++) { for (int y=0; y<DATA.GetLength(1); y++) { // Do something... }}/* Assuming output would be like: x=0:y=1,y=2,y=n,... x=2:y=1,y=2,y=n,... Row1 | Row2 | RowN | --------+--------+--------+--------+ Column1 | Value1 | Value2 | ValueN | Column2 | Value1 | Value2 | ValueN |*/That's C# code by the way and should allow you to pivot a table completely... um wow I must be bored...