知识在于积累(.NET之路……)

导航

文章分类 -  ASP.NET之GridView专栏

ASP.NET之GridView专栏——关于各类与GridView有关的知识集。
GridView.RowCommand 事件中获取当前行的信息
摘要:<%@ Page Language="C#" AutoEventWireup="true"%><%@ Import Namespace="System.Data" %><script runat="server"> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.BindGridView(); } } protected void GridView1_RowCommand 阅读全文

posted @ 2011-05-16 15:53 汤尼 阅读(218) 评论(0) 推荐(0)

ASP.NET之GridView的BoundField.DataFormatString 属性
摘要:语法: public virtual string DataFormatString { get; set; } 属性值: 类型:System.String 指定字段值的显示格式的格式化字符串。 默认值为空字符串 (""),表示尚无特殊格式设置应用于该字段值。 备注 使用 DataFormatString 属性为 BoundField 对象中显示的值指定自定义显示格式。 如果未设置 DataFormatString 属性,则字段的值在显示时不使用任何特殊的格式设置。 (注意 在 3.5 以前的 ASP.NET 版本中,您必需将 HtmlEncode 属性设置为 false 阅读全文

posted @ 2011-04-28 11:31 汤尼 阅读(1078) 评论(0) 推荐(0)