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; } }

|