Checked ==true ? "Y":"N" ;

string overtime_mk= ((CheckBox)WebDataGrid1.Items[i].FindControl("CheckBox1")).Checked ==true ? "Y":"N" ;

原文地址:https://www.cnblogs.com/buy0769/p/4073058.html