zoukankan      html  css  js  c++  java
  • 设置GridView、DataGrid 以提供thead、tbody等标签

    一、简述

      做项目用到了GridView、DataGrid(原谅公司,既然还用DataGrid =》 又从以前的项目中搬代码 - - !!! )。然后想为其增加 thead、tbody 好兼容JQuery的js插件。

    二、内容

    GridView代码

            GridView1.DataSource = fakeDataTable;
            GridView1.DataBind();
    GridView1.UseAccessibleHeader=true; //为True则表格头部的单元格标签是th GridView1.HeaderRow.TableSection
    = TableRowSection.TableHeader;

     DataGrid代码

            dataGrid1.DataSource = fakeDataTable;
            dataGrid1.DataBind();
    Table table
    = dataGrid1.Controls[0] as Table; table.Rows[0].TableSection = TableRowSection.TableHeader;

  • 相关阅读:
    hadoop yarn日志分离
    hadoop优化
    hive UDF
    hadoophttpfs
    spark编译
    spark feature
    python
    python 装饰器
    HTML特殊转义字符列表
    博客园数据统计
  • 原文地址:https://www.cnblogs.com/kongbailingluangan/p/5451396.html
Copyright © 2011-2022 走看看