一键命中如何解决GridView事件引发两次 [英] How to resolve gridview events are raising twice with one hit

查看:66
本文介绍了一键命中如何解决GridView事件引发两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我不知道如何解决一次两次击中的gridview事件,例如rowupdating,rowcanceling和rowdeleting事件,请给我解决方案,我遇到了很多问题.

Hi i have no idea on how to resolve gridview events are executing twice with one hit like, rowupdating,rowcanceling and rowdeleting events please give me solution i am facing lot of problems.

推荐答案

以前仅在Chrome中是一个问题;不在IE或FireFox浏览器中.

解决方法是,您可以在GridView_RowDeleting中放置一个条件,以验证是否删除了该行,然后可以通过
取消Rowdeleting.
It used to be an issue only in Chrome; not in IE or FireFox browsers.

As a workaround, you can put a condition in the GridView_RowDeleting to verify if the row is deleted or not then accordingly you can cancel the Rowdeleting by
e.cancel =true;


这篇关于一键命中如何解决GridView事件引发两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆