asp.net datagrid BoundColumn 为什么里的数据编辑后不能更新?(急)

来源:百度知道 编辑:UC知道 时间:2024/06/27 09:57:07
页面代码
<asp:DataGrid ID="DataGrid1" runat="server" BorderWidth="1px" BorderColor="#2988C5" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" Height="178px" OnDeleteCommand="DataGrid1_DeleteCommand" OnEditCommand="DataGrid1_EditCommand" OnUpdateCommand="DataGrid1_UpdateCommand" Width="800px" OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged" showfooter="True">
<FooterStyle BackColor="#2988C5" Font-Bold="True" ForeColor="White" BorderColor="#284775"/>
<EditItemStyle BackColor="#2988C5" BorderColor="#2988C5" />
<SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />

明显没有!ispostback吗,嘿嘿,马后炮了

后台更新按钮内要重绑定,现在都用Gridview了,datagrid落后了

当你更新过后,你需要重新绑定数据.这样就可以了.

这么复杂