从网格中选择一行 [英] Select a row from grid
本文介绍了从网格中选择一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个显示员工数据的gridview1,以及作为datakey的employment_info_id。网格的最后一列包含复选框,我想一次只检查一行,换句话说,如果我选中另一个复选框,我之前选中的复选框应该是未选中的,并且我还得到datakey值。
感谢
Usama Javed
Hi,
I have a gridview1 which shows employee data, and "employment_info_id" as datakey. Last column of the grid contains checkbox, i want to check only one row at a time, in other words if i check another check box the checkbox i checked before should be unchecked and also i get the datakey value.
Thankful
Usama Javed
推荐答案
使用单选按钮列表,因为复选框列表具有以下属性多项选择
use radio button list, becase check box list have property of multiple selection
这篇关于从网格中选择一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文