开发者

How to create a matrix with dynamic rows and columns in ASP.NET?

I have to make a control in ASP.NET that allows me to create a matrix. I have a list of strings (obtained from a method) that will be the rows (each string is one row), and I have another list of strings (obtained from other method) that will be the columns (each string is one column). After that, depending on the row-cloumn cross I have to pu开发者_运维知识库t an image in that position, something like this:

       x  |  y |  z
   a | OK | OK | BAD|
   ------------------
   b | OK |BAD | OK |
   ------------------
   c |BAD |BAD | BAD|

How can I achieve this? Thanks a lot in advance!


You can use nested Repeaters.

The outer repeater for rows, the inner one for columns/cells.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜