sure, use ItemTemplate, and evaluate the data this way:<%# ((SomeClass)Container.DataItem).a %><%# ((SomeClass)Container.DataItem).b %>......

解决方案 »

  1.   

    你这样写,当然可以显示,可是完全没有用到 DataGrid 呀?
    而那正是我需要的...
      

  2.   

    dim a as arraylist
    a=new arraylist()
    a.add("a")
    a.add("c")
    datagrid1.datasource=a
    datagrid1.databind()
      

  3.   

    这是一维的表格,microsoft给的也是这种例子,难道 arrayList 作为数据源就只能达到这种简单的效果吗?
      

  4.   

    in the ItemTemplate, Container.DataItem is your individual element, you need to cast it into the right type and use the object to do whatever you want