
如图,增加的临时列 可以默认显示成

吗? 如果在增列时赋值0 显示是没问题了,但列成了 只读列
If DataTables("粕类合同").DataCols.contains("选择") = False Then
DataTables("粕类合同").DataCols.Add("选择", GetType(Boolean))
end if
这种方式我测试默认都是没有勾选的呀。是不是早就建过列,并且勾选赋值过了。
可以清空一下
DataTables("粕类合同").ReplaceFor("选择", false)
是的,早期不是临时列For Each r As Row In Tables("首页_Table1").GetCheckedRows
临时列后 这里怎么写比较好呢
[此贴子已经被作者于2024/11/13 13:09:30编辑过]
临时列和
GetCheckedRows没有任何关系。如果要使用GetCheckedRows不需要添加临时列:http://www.foxtable.com/webhelp/topics/1776.htm
For Each dr As DataRow In DataTables("首页_Table1").Select("选择=true")