for each dr as datarow in datatables("xxx")
if dr("日期列名称") < Date.Today Then
dr.Locked = True
end if
next