DataFormatString格式化GridView中绑定字段
摘要:
DataFormatString格式化GridView中绑定字段首先,要设置"行为"中HtmlEncode = false DataFormatString="{0:格式字符串}"在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代表所们希望数据显示的格式若<%# Eval("日期","{0:yyyy-MM-dd}") %>用此绑定,则不需加Htm... 阅读全文
posted @ 2010-05-21 15:42 newstar0101 阅读(230) 评论(0) 推荐(0)
浙公网安备 33010602011771号