可以在 BoundColumn.DataField 中调用函数吗?
<asp:BoundColumn DataField="pos" HeaderText="Principal Office" />
是否有可能以某种方式...
<asp:BoundColumn DataField="postProccess(pos)" HeaderText="Principal Office" />
...这样我就可以根据需要修改该值?
CRAP:
A field or property with the name 'postProcess(pos)' was not found on the selected data source.
有人知道我如何可以覆盖那个东西或其他东西吗?
<asp:BoundColumn DataField="pos" HeaderText="Principal Office" />
would it be possible to somehow...
<asp:BoundColumn DataField="postProccess(pos)" HeaderText="Principal Office" />
...so I could modify the value as needed?
CRAP:
A field or property with the name 'postProcess(pos)' was not found on the selected data source.
Anyone know how I can override that thing or something??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是您想要用于模板列的完整片段...
Here is the full snippet you'd want to use for your template column...
使用
< ;asp:templatecolumn>
并在ItemDataBound
事件use an
<asp:templatecolumn>
and do the post processing in theItemDataBound
event