为什么我的GridView为什么不能用DataBinder.Eval(Container.DataItem,"articleID")绑定数据?
前:
////////////////////
<asp:GridView ID= "mainGridView " runat= "server " AutoGenerateColumns= "False ">
<Columns>
<asp:TemplateField HeaderText= "ID ">
<ItemTemplate>
<asp:CheckBox ID= "CheckBox1 " runat= "server " Text= ' <%# DataBinder.Eval(Container.DataItem, "articleID ") %> '/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText= "菜单 " />
<asp:BoundField DataField= "articleTitle " HeaderText= "主题 " />
<asp:BoundField DataField= "articleSender " HeaderText= "发布者 " />
<asp:BoundField DataField= "articleTSenddate " HeaderText= "发布日期 " />
<asp:BoundField HeaderText= "状态 " />
<asp:BoundField HeaderText= "管理 " />