置顶的贴子里就有相关链接:http://expert.csdn.net/expert/topic/755/755396.xml

解决方案 »

  1.   

    楼上的帖子是不管乱七八糟 就把该datagrid里某个列给统计下来  如果 我的datagird是分段统计的呢? 比如根据用户的交易量来统计 而我查询的时候 又不是根据某个特定的用户来查询的 这样 就必须在datagrid的中间某一行里插入 统计摘要行哦  :(痛苦啊  asp.net
      

  2.   

    I would suggest that you roll your own to write your data to a html table. Make sure your records are ordered by 用户 Name (using proper SQL statement or sorted DataView on DataTable)when you go through each recordset, remember the previous 用户 name, you keep 统计 for each 用户, when the 用户 Name changes or no recordset left, you output the 统计