当前位置: 代码迷 >> PB >> DataWindow中怎么实现数据行上下移动
  详细解决方案

DataWindow中怎么实现数据行上下移动

热度:64   发布时间:2016-04-29 10:02:01.0
DataWindow中如何实现数据行上下移动?
Grid窗口中数据行向上或者向下移动,有好的解决方法么?


------解决方案--------------------
不知道你所谓的上下移具体是什么意思,
我这边做点歌系统,已点歌曲列表中优先歌曲,用的是rowsmove

不知道对你有没有帮助
------解决方案--------------------
//down
Long ll_row
ll_row = this.getrow()
if ll_row = rowcount() or ll_row = 0 then return
this.RowsMove(ll_row, ll_row, Primary!, this, ll_row +2, Primary!)
this.Setrow(ll_row +1)

//up
Long ll_row
ll_row = this.getrow()
if ll_row = 1 or rowcount() = 0 then return
this.RowsMove(ll_row, ll_row, Primary!, this, ll_row -1, Primary!)
this.Setrow(ll_row -1)
  相关解决方案