常见的在控件中嵌套控件是,在DataGrid中嵌套一个 CheckBox,

效果是可以知道哪些被选中

for (int i=0; i<DataGrid1.Items.Count;i++)
   {
    bool isChecked = ((CheckBox)DataGrid1.Items[i].FindControl("Checkbox2")).Checked;
    if (isChecked == true)
    {

     res1 = "testing/tiank/item/"+temp[i];
     _ArrayList.Add(res1);
    }
   }

posted on 2007-02-07 13:03  mbskys  阅读(87)  评论(0)    收藏  举报