标记ASP.NET:我的GridView控件只是部分有填充本身....(??)
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="insured_first_name" HeaderText="First Name" />
<asp:BoundField DataField="insured_first_name" HeaderText="Middle Name" />
<asp:BoundField DataField="insured_last_name" HeaderText="Last Name" />
</Columns>
</asp:GridView>
代码
GridView1.DataSource = _dataSet
DataBind()
每当我的GridView的填充,如果是没有价值从我的_dataSet
返回一个字段,我的GridView停止后填充。它不应该跳过这一点,并继续填充网格的其余部分?看来GridView不会接受一个空/空值。任何解决此问题的方法?
什么是在DataSet ?它来自什么? – SLaks 2010-09-27 19:44:34
我的DataSet正在被存储过程填充。它有一堆列,其中,我只想要其中的一些,我也想要不同的名称。这就是为什么我将它们设置在控制系统中。 – user408869 2010-09-27 19:48:39