同一个gridview中,3个boundfield DataFormatString='{0:F2}',DataFormatString='{0:d}' 有作用。
DataFormatString='{0:G}' 没作用,加上HTMLencode="false"也没用。
只能在datarowbound里转!
怎么回事?
DataFormatString='{0:G}' 没作用,加上HTMLencode="false"也没用。
只能在datarowbound里转!
怎么回事?
调试欢乐多
偶也碰到过这个问题,不过和你的还不一样。
使用了{0:D}在ie6和ie7中都不一样,ie6中自动添加了时间,甚至最后在itembound中ToShortDateString()都有问题。