![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GridView
文章平均质量分 70
fanzhonglei
这个作者很懒,什么都没留下…
展开
-
GridView 实现 鼠标经过感知及点击行弹出窗口
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;us原创 2008-09-05 14:30:00 · 1008 阅读 · 0 评论 -
GridView复合表头
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 17:07:00 · 1250 阅读 · 0 评论 -
GridView固定表头
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 16:39:00 · 706 阅读 · 0 评论 -
GridView一般换行与强制换行
GridView里有一列绑定的数据很长,显示的时候在一行里面显示,页面拉得很宽。原因是连续英文段为一个整体导致的,在RowDataBound中添加上了一句e.Row.Cells[2].Style.Add("word-break", "break-all")就可以。如果要给所有的列增加此属性: protected void Page_Load(object sender, Even原创 2008-09-26 15:22:00 · 1101 阅读 · 1 评论 -
GridView正反双向排序
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>GridView正反双向排序ti原创 2008-09-26 11:36:00 · 787 阅读 · 0 评论 -
GridView突出显示某一单元格(例如金额低于多少,分数不及格等)
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 17:14:00 · 718 阅读 · 0 评论 -
GridView实现自定义时间货币等字符串格式
在asp.net 2.0中,如果要在绑定列中显示比如日期格式等,如果用下面的方法是显示不了的asp:BoundField DataField="Birthday" HeaderText="生日" DataFormatString="{0:yyyy年M月dd日}" />主要是由于htmlencode属性默认设置为true,已防止XSS攻击,安全起见而用的,所以,可以有以下两种方法解决原创 2008-09-26 14:47:00 · 727 阅读 · 0 评论 -
给GridView添加行号
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>给原创 2008-09-26 14:25:00 · 3732 阅读 · 1 评论 -
GridView实现删除时弹出确认对话框
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 14:15:00 · 927 阅读 · 0 评论 -
GridView加入自动求和求平均值小计
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 17:27:00 · 1051 阅读 · 0 评论 -
GridView实现用“...”代替超长字符串
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 15:08:00 · 1369 阅读 · 1 评论 -
GridView模板列中添加CheckBox 实现全选、删除
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>GridView模板列中添加Ch原创 2008-09-26 14:01:00 · 2949 阅读 · 0 评论 -
GridView模板列中添加DropDownList
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>GridView模板列中添加Dr原创 2008-09-26 12:37:00 · 4925 阅读 · 0 评论 -
GridView实现 选中,编辑,取消,删除
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>GridView选中,编辑,取消原创 2008-09-26 11:01:00 · 849 阅读 · 0 评论 -
GridView数据导入Excel
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> html xmlns="http://www.w3.org/1999/xhtml" > head id="Head1" runat="server"> title>G原创 2008-09-26 17:41:00 · 752 阅读 · 0 评论