做项目的时候需要一个多表头的GridView
网上搜了下,不算难。
我个人来说还是感觉不错
主要原理还是利用GridView 在RowCreated的时候进行重写表头
即当 e.Row.RowType==DataControlRowType.Header 时,
擦除表头,利用Attributes重写下
不说多了  上代码

  1GridView 多行表头制作方法using System;
  2GridView 多行表头制作方法using System.Data;
  3GridView 多行表头制作方法using System.Configuration;
  4GridView 多行表头制作方法using System.Collections;
  5GridView 多行表头制作方法using System.Web;
  6GridView 多行表头制作方法using System.Web.Security;
  7GridView 多行表头制作方法using System.Web.UI;
  8GridView 多行表头制作方法using System.Web.UI.WebControls;
  9GridView 多行表头制作方法using System.Web.UI.WebControls.WebParts;
 10GridView 多行表头制作方法using System.Web.UI.HtmlControls;
 11GridView 多行表头制作方法
 12GridView 多行表头制作方法public partial class temp_Default2 : System.Web.UI.Page
 13

相关文章:

  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-10-08
  • 2022-03-10
  • 2022-02-08
猜你喜欢
  • 2022-02-27
  • 2021-10-11
  • 2021-12-12
相关资源
相似解决方案