大家好,我想要使用Vsflexgrid实现Treeview的树状结构的功能!应该怎么实现啊!
vsflexgrid的数据源来自于sql数据库
Private Sub Form_Load() sql = "select * from proc_shengchan_notice_tiaoma_no_temp_table" ‘打开数据库中的一张表
rsmsh sql, VSFlexGrid1 '调用函数,执行sql,并将执行结果传给rs记录集 With VSFlexGrid1
' outline
.OutlineCol = 0
.OutlineBar = flexOutlineBarCompleteLeaf
.MergeCells = flexMergeOutline
' ' other
.AllowUserResizing = flexResizeColumns '允许设置列的宽度
.AllowSelection = False
End With
..........................------------------------需要加入VSFlexGrid1.IsSubtotal(1) = True,出来的效果也不对啊,要是有二级、三级节点该怎么办啊 ?
VSFlexGrid1.AutoSize 0, 1, , 200 '将第一列的宽度设置为200
End Sub
vsflexgrid的数据源来自于sql数据库
Private Sub Form_Load() sql = "select * from proc_shengchan_notice_tiaoma_no_temp_table" ‘打开数据库中的一张表
rsmsh sql, VSFlexGrid1 '调用函数,执行sql,并将执行结果传给rs记录集 With VSFlexGrid1
' outline
.OutlineCol = 0
.OutlineBar = flexOutlineBarCompleteLeaf
.MergeCells = flexMergeOutline
' ' other
.AllowUserResizing = flexResizeColumns '允许设置列的宽度
.AllowSelection = False
End With
..........................------------------------需要加入VSFlexGrid1.IsSubtotal(1) = True,出来的效果也不对啊,要是有二级、三级节点该怎么办啊 ?
VSFlexGrid1.AutoSize 0, 1, , 200 '将第一列的宽度设置为200
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货