gridview 的update参数问题
gridview选择一行进行更新,中间没有报错,但数据却没有被更新.
实在找不出原因,只好将绑定列全部改成了模板列,然后在RowUpdating事件中给参数赋值.相应的textbox中已经写入的新的值,但findcontrol时得到的仍然是原来绑定的值,
郁闷死了,向高手救助
<asp:GridView ID= "GridView1 " runat= "server " AutoGenerateColumns= "False " Width= "800px " BorderStyle= "Solid " BorderWidth= "1px " DataSourceID= "SqlDataSource1 " DataKeyNames= "ID " AllowSorting= "True " OnRowUpdated= "GridView1_RowUpdated " OnRowUpdating= "GridView1_RowUpdating ">
<Columns>
<asp:TemplateField HeaderText= "Result ">
<ItemTemplate> <asp:Label runat= "server " ID= "lbl " Text= ' <%#Bind( "Result ")%> '> </asp:Label> </ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID= "dropResultEidt " runat= "server ">
<asp:ListItem Text= "Pass "> </asp:ListItem>
<asp:ListItem Text= "Fail "> </asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateFi