首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

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

2012-02-27 
DataWindow中如何实现数据行上下移动?Grid窗口中数据行向上或者向下移动,有好的解决方法么?[解决办法]不知

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)

热点排行