拖放数据网格视图 [英] Drag and drop in data grid view

查看:63
本文介绍了拖放数据网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨ppl,

我在Datagrid视图的常见问题解答中找到的拖放代码是单行,我想知道是否有人可以帮助我拖放(重新排序数据网格视图中的行)多行,并且当数据网格视图具有垂直滚动条并且perosn想要将所选行拖动到行索引位置时,如果不向上或向下滚动则无法访问,我该怎么办?这样scoll栏会自动向上或向下滚动,具体取决于鼠标拖动的位置???

the code which I found in the FAQ of Datagrid view for drag and drop was for a single line I was wondering if any one can help me with drag and drop (reordering the rows in the data grid view) for multiple rows and when the datagrid view has a vertical scroll bar and if a perosn wants to drag the selected row to a row index location which is inaccesible without scrolling up or down, how would i do it ??so that the scoll bar would automaticaly scroll up or down depending on the location of the down mouse drag ??? 

任何人的帮助都会受到高度赞赏....

anyones help would be highly appreciated....

欢呼,

推荐答案

hi,

请设置 TabNavigation = "循环" gridview中的

please set TabNavigation="Cycle" in the gridview.


这篇关于拖放数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆