以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 删除一列时,其它列也会跟着自动删除 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=124206) |
-- 作者:aza520 -- 发布时间:2018/9/1 20:20:00 -- 删除一列时,其它列也会跟着自动删除 例如有A、B、C三列,A列通过下拉列表选择,B、C列自动填充,想实现当删除A列值时,B、C列也会自动删除,请问老师该怎么做? |
-- 作者:wyz20130512 -- 发布时间:2018/9/1 22:26:00 -- \'DataColChanged事件 If e.DataCol.Name = "第一列" Then If e.NewValue = Nothing Then e.DataRow("第二列") = Nothing e.DataRow("第三列") = Nothing End If End If
|
-- 作者:有点甜 -- 发布时间:2018/9/2 11:26:00 -- If e.DataCol.Name = "第一列" Then
If e.NewValue = Nothing Then
e.DataRow("第二列") = Nothing
e.DataRow("第三列") = Nothing
Else
\'你原来的赋值代码
End If
End If
|