关于vsflexgrid 应用的问题。。
时间:2011-08-25
来源:互联网
这里有两个关于vsflexgrid树形的问题。。
第一个问题,如下代码。
with vsf1
.RowOutlineLevel(1) = 0
.IsSubtotal(1) = True
.RowOutlineLevel(2) = 1
.IsSubtotal(2) = True
.RowOutlineLevel(3) = 1
.IsSubtotal(3) = True
.RowOutlineLevel(4) = 0
.IsSubtotal(4) = True
.RowOutlineLevel(5) = 1
.IsSubtotal(5) = True
.RowHidden(2) = True
.RowHidden(3) = True
.RowHidden(5) = True
.OutlineCol = 1
.OutlineBar = flexOutlineBarSimpleLeaf
end with
当隐藏下级行时,上级行的左方还是减号,"-" 怎么样才能显示"+".
第二问题。。请问vsflexgrid 树形 如何排序,试了好多方法都不成功的,想
with vsf1
.Col = 0
.Row = 0
.Sort = flexSortStringNoCaseAscending
.Cell(flexcpSort, 0, 0, .Rows - 1, 0) = flexSortStringNoCaseAscending
end with
试过这两种方法都不成功,难道要自己编写吗。想treeview控件的sorted属性直接设置就ok的那种方法有吗?
第一个问题,如下代码。
with vsf1
.RowOutlineLevel(1) = 0
.IsSubtotal(1) = True
.RowOutlineLevel(2) = 1
.IsSubtotal(2) = True
.RowOutlineLevel(3) = 1
.IsSubtotal(3) = True
.RowOutlineLevel(4) = 0
.IsSubtotal(4) = True
.RowOutlineLevel(5) = 1
.IsSubtotal(5) = True
.RowHidden(2) = True
.RowHidden(3) = True
.RowHidden(5) = True
.OutlineCol = 1
.OutlineBar = flexOutlineBarSimpleLeaf
end with
当隐藏下级行时,上级行的左方还是减号,"-" 怎么样才能显示"+".
第二问题。。请问vsflexgrid 树形 如何排序,试了好多方法都不成功的,想
with vsf1
.Col = 0
.Row = 0
.Sort = flexSortStringNoCaseAscending
.Cell(flexcpSort, 0, 0, .Rows - 1, 0) = flexSortStringNoCaseAscending
end with
试过这两种方法都不成功,难道要自己编写吗。想treeview控件的sorted属性直接设置就ok的那种方法有吗?
作者: qrlin888 发布时间: 2011-08-25
1, 试试OutlineBar = flexOutlineBarCompleteLeaf
2,.Col = 0
.Sort = flexSortStringNoCaseAscending
2,.Col = 0
.Sort = flexSortStringNoCaseAscending
作者: patrickkong 发布时间: 2011-08-25
2,.ExplorerBar =flexExSortShow
作者: patrickkong 发布时间: 2011-08-25
不成啊,,两个问题都还是老样子。。
作者: qrlin888 发布时间: 2011-08-25
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28