GridView1:System.Web.UI.WebControls.DataControlFieldCollection 必须具有类型为“System.We
GridView1:System.Web.UI.WebControls.DataControlFieldCollection 必须具有类型为“System.Web.UI.WebControls.DataControlField”的项。“asp:CheckBox”的类型为“System.Web.UI.WebControls.Checkbox”
<asp:GridView ID="GridViewList" runat="server" AutoGenerateColumns="False" onrowdatabound="GridViewList_RowDataBound" >
<Columns>
...
<asp:CheckBox id="checkBoxisFinance" HeaderText="财务相关" />
------解决方案--------------------
1.漏了runat ="server",2.好象CheckBox也没有HeaderText的属性!!
<asp:CheckBox runat ="server" id="checkBoxisFinance" HeaderText="财务相关" />