iT邦幫忙

0

Gridview 欄位裡的DataFormatString

ddx 2021-09-22 11:34:09828 瀏覽

Gridview 裡我找不到任何方法有關DataFormatString
Gridview 欄位裡的DataFormatString可以用後端來更改嗎?

ddx iT邦研究生 5 級 ‧ 2021-09-22 11:56:03 檢舉
有人知道這可以撤掉嗎?
我已找到方法了
Homura iT邦高手 1 級 ‧ 2021-09-24 11:41:45 檢舉
你應該要把答案貼上來
不是要把問題撤掉...
ddx iT邦研究生 5 級 ‧ 2021-09-28 09:12:36 檢舉
原來如此
答案是: ((BoundField)Gridview1.Columns[x]).DataFormatString = "{0:yyyy/MM}";
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答