以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  listview 问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=73371)

--  作者:freeants
--  发布时间:2015/8/18 11:21:00
--  listview 问题
listview 是否只可以拖拽1行,能否同时拖拽几行
--  作者:大红袍
--  发布时间:2015/8/18 11:53:00
--  

1、http://www.foxtable.com/help/topics/2777.htm

 

2、比如,最简单的,你可以在BeforeDropRow处理

 

Dim lvw As WinForm.ListView = e.Sender
If e.Source.Name <> e.Sender.Name Then \'如果是从其他ListView中拖动过来的
    For Each vr As WinForm.ListViewRow In e.Source.SelectedRows
        Dim nr = e.sender.Rows.Add()
        nr.Text = vr.text
        nr.Name = vr.name
    Next
End If
e.cancel = True