zoukankan      html  css  js  c++  java
  • 在GridView中的每一页末尾添加空行

    原文发布时间为:2008-08-03 —— 来源于本人的百度文章 [由搬家工具导入]

    protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
        {    
            int numCol = GridView1.Columns.Count;
            int numRow = GridView1.Rows.Count;
            if (e.Row.RowType == DataControlRowType.Footer)
            {
                GridViewRow gr = new GridViewRow(-1, -1, DataControlRowType.EmptyDataRow, DataControlRowState.Normal);
                for (int j = 0; j < numCol; j++)
                {
                    TableCell cell = new TableCell();
                    cell.Text = "&nbsp";
                    gr.Cells.Add(cell);
                }
                GridView1.Controls[0].Controls.AddAt(numRow + 1, gr);
            }
        }

  • 相关阅读:
    【概念】指针
    【c++】随机数
    组装一台计算机
    模拟打印机
    实现手机的某些功能
    作业
    static 静态内部类
    java中编译报错 ClassCastException 是什么原因,如何处理
    作业1 2
    作业2
  • 原文地址:https://www.cnblogs.com/handboy/p/7143816.html
Copyright © 2011-2022 走看看