怎么判断dataGrid里的复选框被选中-ASP教程,数据库相关
来源:作者: 发布时间:2007-12-26 02:04:13

1: wj2929(*ヤrěйヤ*) ( ) 信誉:100
checkbox cb=(checkbox)datagrid.items[行].cells[列].controls[1];
bool b=cb.checked //这里得到
2: haogmj() ( ) 信誉:100
foreach(datagriditem item in datagrid1.items)
{
checkbox chk=((checkbox)item.cells[4].findcontrol("checkbox1"));
if(item.cells[3].text=="1")
{
chk.checked=true;
}
}
|
还没有关于此文章的相关评论!