偶是这样做的,先让它来帮定,这个字段这占一单元,然后再用代码来使其绑定。
dim ctrl as control
for i to dg.items.count
if (true) then
for each ctrl in dg.items.controls
ctrl= dg.items(i).findcontrol(ck)
if ctrl.gettype="system.web.ui.checkbox" then
ctype(ctrl,checkbox).checked= true
end if
next
end if
next
但我想用模板列来绑也能实现,不过没时间来做,有空帮你试试,先解你燃眉之急吧