用属性生成器生成的代码是:
<asp:BoundColumn Visible="False" DataField="Price " HeaderText="Price"></asp:BoundColumn>
用模版列是:<%# DataBinder.Eval(Container.DataItem, "Price") %>模版列涉及到了‘反射’,那么asp:BoundColumn涉没涉及到?两者都可以在apsx页面中把字段名称改改就可以输出别的字段值,都好像是所谓的“晚邦定”,没看出什么不同的啊。
请大家帮忙解惑,谢谢!