A B
C D
E F G H不知道怎么贴图,大概就是这个样子,b下面分c和d,c下面又分为e和f,
小妹一早上想破了头也想不出来怎么在datagrid中实现。
而且还要对这些cells进行编辑绑定,怎么弄啊??

解决方案 »

  1.   

    http://blog.csdn.net/Eddie005/archive/2004/11/09/173429.aspx
      

  2.   

    再详细说一下:
    用datagrid实现多层表头,还要带有分页,编辑功能,我现在只能做到2层的表头,还不知道怎么给它分页和编辑,郁闷死掉了啊!
      

  3.   

    http://dotnet.aspx.cc/ShowDetail.aspx?id=0BF1E82C-A30A-4B5B-85B2-8DB339A41D37
      

  4.   

    if ( e.Item.ItemType == ListItemType.Header ) 
     {
      TableCellCollection tcl = e.Item.Cells;
      tcl.Clear();
      tcl.Add( new TableHeaderCell() );
      tcl[0].RowSpan = 3;
      tcl[0].Text = "数据项";
     
      tcl.Add( new TableHeaderCell() );
      tcl[1].ColumnSpan = 4;
      tcl[1].Text = "帐目开支</th></tr><tr></th><th>支出</th><th>入帐</tr><tr></th><th>第一季度支出</th><th>第二季度支出</th><th>第一季度入帐</th><th>第一季度入帐";
    }
      

  5.   

    if ( e.Item.ItemType == ListItemType.Header ) 
     {
      TableCellCollection tcl = e.Item.Cells;
      tcl.Clear();
      tcl.Add( new TableHeaderCell() );
      tcl[0].RowSpan = 3;
      tcl[0].Text = "数据项";
     
      tcl.Add( new TableHeaderCell() );
      tcl[1].ColumnSpan = 4;
      tcl[1].Text = "帐目开支</th></tr><tr></th><th>支出</th><th>入帐</tr><tr></th><th>第一季度支出</th><th>第二季度支出</th><th>第一季度入帐</th><th>第一季度入帐";
    }
      

  6.   

    看看小山兄的
    有源代码
    http://singlepine.cnblogs.com/archive/2005/11/23/282990.html