当我在 GridView 上使用内联编辑并开始编辑一行时,当我在任何文本编辑器上按 enter 时,不是更新该行,而是取消它,关闭更新并返回。
我怎样才能防止这种情况发生,当我按下回车键使用jQuery在线提交更新时。
<asp:GridView ID="gvLista" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" >
<Columns>
<asp:CommandField ShowDeleteButton="true" ShowEditButton="true" >
<-- rest of BoundField with editors or other data -->
<asp:BoundField DataField="Name" />
</asp:CommandField>
</Columns>
</asp:GridView>