Can I change "on row command" event handler of a gridview dynamically from code and in run time? I use C#
Thanks
Just add your handlers somewhere in your code where you want changed (perhaps in a click event handler). If necessary, remove your old handler beforehand.
gridView.RowCommand -= MyOldRowCommandHandler;
gridView.RowCommand += MyNewRowCommandHandler;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.