2

我想使用以下格式的 ASP.NET 3.5 (VB.NET) 使用 Oracle 数据库中的数据填充表:

我要显示的数据模型

如您所见,右侧有描述数据的标题行。有没有办法使用 GridView 来完成这个?我曾尝试查看 GridView.Row 类,但找不到任何可以添加行标题的内容。有什么建议么?

谢谢!

4

1 回答 1

1

It would be easiest for you to move the headers (that are currently in the first column), so that they are horizontally displayed in the first row (instead of the word "header"). The data should repeat vertically so it will have to be flipped around.

Alternatively, as long as you have a fixed number of columns you should look at binding the values to literals instead. If you do not have a fixed number of records, then a grid which repeats horizontally is not a good idea for a web page.

The GridView control is suited for tabular, vertically-repeating data that is designed to be paged.

于 2012-11-13T16:28:46.127 回答