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)