各位:
    现在我要写个页面里面显示图片的,从2个表中抽出数据之后显示,详细情况如下:
相关数据库信息

Cate_2 //二级分类表

    ID            //二级分类ID    
    Cate_1_ID     //所属一级分类ID
    Cate_2_Name   //二级分类名
    PicSrc        //分类图片

PicInfo //图片信息表

    ID            //图片ID
    Src           //图片路径
    Cate_2_ID     //所属二级分类ID



程序功能效果为:

—————————————————————————————————————
|                      |            |            |            |            |
|                      |            |            |            |            |
|                      |     A      |     B      |     C      |     D      |
|                      |            |            |            |            |
| 显示Cate_2表中的图片  —————————————————————————
|                      |            |            |            |            |
|                      |            |            |            |            |
|                      |     E      |     F      |     G      |     H      |
|                      |            |            |            |            |
—————————————————————————————————————

—————————————————————————————————————
|                      |            |            |            |            |
|                      |            |            |            |            |
|                      |     A      |     B      |     C      |     D      |
|                      |            |            |            |            |
| 显示Cate_2表中的图片  —————————————————————————
|                      |            |            |            |            |
|                      |            |            |            |            |
|                      |     E      |     F      |     G      |     H      |
|                      |            |            |            |            |
—————————————————————————————————————

..... 显示5个版面

A,B,C,D,E,F,G,H 显示PicInfo表中Cate_2_ID 等于前面调用大图的大图所属Cate_2的ID


我想到的实现的方法我实现不成功,请各位赐教~
我以为用DataGrid里面嵌套DataList可以实现,但是尝试后说"未将对象引用设置到对象的实例。
"
q请问各位有什么解决方法么,谢谢