![]() |
Move Up/Down records |
Post Reply ![]() |
Author | |
Sudhakar ![]() Newbie ![]() Joined: 17 February 2009 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 11 March 2009 at 4:25am |
I have below code in a button("Move Up" ) handler. I need to move the record whenever the user clicks the "Move Up" button after selecting a report control row. Below code is not moving the record up. The focus(selection) just moving up, but the data of the selected record is not moving up. What could be the problem? Please suggest.
void CPVRuleManagerDlg::OnBnClickedMoveup() |
|
![]() |
|
Sudhakar ![]() Newbie ![]() Joined: 17 February 2009 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Somehow I got the solution. It works with CXTPReportRecord instead of CXTPReportRow. void CPVRuleManagerDlg::OnBnClickedMoveup() if( index== 0) CXTPReportRecord *pRecord = m_wndReportCtrl.GetRecords()->GetAt(index); |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Perhaps you should read this thread: http://forum.codejock.com/forum_posts.asp?TID=13113
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |