Foxtable(狐表)用户栏目专家坐堂 → 目录树展开后,顺序乱了。


  共有1378人关注过本帖平板打印复制链接

主题:目录树展开后,顺序乱了。

帅哥哟,离线,有人找我吗?
lanbor
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:433 积分:4351 威望:0 精华:0 注册:2017/3/20 21:08:00
目录树展开后,顺序乱了。  发帖心情 Post By:2023/9/21 12:26:00 [只看该作者]

教专家,
我的目录树手动排好顺序后
再一点“展开树” 按钮,这顺序就乱了,需要如何控制?

-----------以下是展开树功能代码”
Dim eb1 As WinForm.Button = e.Form.Controls("BOM_EXP")
Dim st As New InlineTreeSetting
If eb1.text = "展开树" Then
    st.ParentCol = "locate"
    st.ChildCol = "fid"
    st.ExpandTo = -1 '---全部展开
    st.UseStyle = True
    st.TreeCol = "ITEM_CODE"
    Vars("ok_true") = False
    st.SortCol = "sysgrdtreesort"  ‘------------这是排序列
    Tables("Custom_BOMchild").ShowGridTree(st)
    eb1.Text = "折叠树"
Else
    st.ParentCol = "locate"
    st.ChildCol = "fid"
    st.ExpandTo = 1 '--不展开
    st.UseStyle = True
    st.TreeCol = "ITEM_CODE"
   Vars("ok_true") = True
   st.SortCol = "sysgrdtreesort"  ‘------------这是排序列
   Tables("Custom_BOMchild").ShowGridTree(st)
   eb1.text = "展开树"
End If
---------------------------------







[此贴子已经被作者于2023/9/21 15:28:12编辑过]

 回到顶部