//为“点”这个checkbox
//datagridview中checkbox的name设置为SELALL
function SelAll(theForm){
for ( i = 0 ; i < theForm.elements.length ; i ++ )
{
if ( theForm.elements[i].type == "checkbox" && theForm.elements[i].name != "SELALL" )
{
theForm.elements[i].checked = ! theForm.elements[i].checked ;
}
}
}
datagridview1的属性中multiselect为true
说来话长,已经私信你了,具体聊