日期:2014-05-18  浏览次数:20518 次

GridView自己带的删除的问题???
错误是这样的:
GridView1”激发了未处理的事件“RowDeleting”。   数据源已经生成删除语句;
-------------------------------
源代码:
<asp:GridView   ID= "GridView1 "   runat= "server "   AutoGenerateColumns= "False "   BackColor= "White "
                                                BorderColor= "#0099FF "   BorderStyle= "Solid "   BorderWidth= "1px "   CellPadding= "3 "   DataSourceID= "SqlDataSource1 "
                                                GridLines= "Horizontal "   Width= "800px "   DataKeyNames= "ProductID ">
                                                <FooterStyle   BackColor= "#B5C7DE "   ForeColor= "#4A3C8C "   />
                                                <Columns>
                                                        <asp:BoundField   DataField= "title "   HeaderText= "产品标题 "   SortExpression= "title ">
                                                                <ItemStyle   HorizontalAlign= "Center "   Width= "100px "   />
                                                                <ControlStyle   CssClass= "prode_edit1 "   />
                                                        </asp:BoundField>
                                                        <asp:TemplateField   HeaderText= "简单介绍 ">                                                                
                                                                <ItemTemplate>