取消选中gridview事件中的复选框itemx [英] Uncheck the checkbox itemx in gridview events

查看:97
本文介绍了取消选中gridview事件中的复选框itemx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gridview的所有行中都有一个图像按钮作为项目模板.单击图像按钮时,将显示一个弹出窗口(带有复选框列表项,更新和取消按钮).假设gridview中有4行.对于第一行,我单击图像按钮,然后弹出一个对话框,从复选框列表中选择一些项目,然后单击更新"按钮.值将更新.现在的问题是,当我单击第二行中的图像按钮时,上一行中的复选框选择未清除.如何摆脱这个问题? ?对于每一行,我希望复选框选择是唯一的.也就是说:对于第一行,无论我选择哪个项目,都应进行检查.但是对于其他行,它不应该反映出来.希望您理解.

I have an image button as item template in all the rows of a gridview. A popup (with checkboxlist items, update and cancel button)will be displayed on clicking the image button. Say there are 4 rows in the gridview . For first row I click on the image button and I get a popup, I select few items from checkboxlist and hit update button. The values get updated. Now the problem is when I click on the image button in the second row the checkbox selections made in the previous row is not cleared. How to get rid of this problem? ? For each row I want the checkbox selection to be unique. That is : For the first row whichever item I selected, should be checked still. But for the other rows it should not reflect. Hope you understand.

推荐答案

您好,当您尝试在执行所有操作时或在关闭弹出窗口之前更新选定的复选框值时,需要取消选择所有程序化的复选框都将在关闭弹出窗口中显示,因此下一次您将获得复选框的全新列表,而无需预先选择.

试试这个...
Hello friend when you try to update your selected check box value at that time when all operation performed or before closing the popup you need to deselect your all check box programmatic its will be in on closing popup, so for next time you will get fresh list of check box without pre selection.

try this...


这篇关于取消选中gridview事件中的复选框itemx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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