Foxtable(狐表)用户栏目专家坐堂 → [求助]listview拖动问题


  共有1428人关注过本帖树形打印复制链接

主题:[求助]listview拖动问题

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


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2016/12/21 10:28:00 [显示全部帖子]

参考代码

 


Dim lvw As WinForm.ListView = e.Sender
Dim lvwSource = e.Source.basecontrol
Dim itm = lvwSource.items(e.OldIndex) '获取要拖动过来的行
If e.Source.Name <> e.Sender.Name Then '如果是从其他ListView中拖动过来的
    e.Add = False
    Dim nitm = itm.clone
    lvw.Rows(0).Delete
    Dim b = e.sender.basecontrol
    b.items.Insert(0,nitm)
End If


 回到顶部