How to change data binding from left to right in Asp.net table?

Typically, table data is tied from top to bottom with column headings at the top of the table. Is there a way to change the data binding from left to right and the headers in the first column of the table?

enter image description here

+3
source share
1 answer

You cannot automatically do this asp.net. You need to convert / collapse your data into the form you need. This is also called a crosstab message.

There are several options:

  • DIY - Scroll through the lines in the source data and manually convert them.

  • Make a core in SQL Server. Here is a simple example for SO.

  • , . Devexpress asp.net pivottable contro . . , .

+1

Source: https://habr.com/ru/post/1793348/


All Articles