作者star1231 (newage)
看板C_Sharp
標題[問題] GridView使用Footertemplate一問
時間Wed Jun 24 00:40:17 2009
我要使用gridview新增資料列
但在使用databind的方式下
如果資料是空的
footerTamplate會找不到
有使用過網路上教學用的 顯示標題列的方式
但我的問題在於我的GridView裡都是用template
ex. Itemtemplate edittemplate footertemplate
而且包含textbox label checkbox dropdownlist..
用網路上那個方法 大概當查詢資料庫為空時
填入一個空的row 並且清除cell...然後columnspan...
我template中有用到<% bind()> 會有錯誤無法正常做到顯示標題列的功能
請問有人有遇過這樣的問題嗎 能否指點一下方向
感謝~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.84.0.252
推 horngsh:select撈資料時用select field1 as name1,field2 as name2 06/24 04:11
→ star1231:請問h大您的意思是 用這形式的語法即可當無資料顯示標題? 06/24 08:54