sorting col. not sort CXTPReportControl Records |
Post Reply |
Author | |
Makarand
Senior Member Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 30 June 2011 at 5:38am |
Hello CJ Team,
In the normal report control if we sort the column and then we try to get the value of specified row,col report control not returns sorted value it returns before sorting value. To reproduce the issue just copy following code in Samplereport File (FormulaDlg.cpp). void CFormulaDlg::OnOK() { CXTPReportRecord* pRecord=reinterpret_cast<CXTPReportRecord*>(m_wndReport.GetRecords()->GetAt(1)); CString str = reinterpret_cast<CXTPReportRecordItemText*>(pRecord->GetItem(1))->GetValue(); AfxMessageBox(str); CDialog::OnOK(); } Open "Formula Test" dialog. Dialog is already soreded/GroupsOrder on product. Above code get the value of 0 row and 0 col which is expected "Book" but actual we are getting "pen" Why sorting col. not sort m_wndReport Records? How to sort records m_wndReport object? -Mak |
|
Makarand
Senior Member Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
|
Go it... CXTPReportRecord* pRecord= m_wndReport.GetRows()->GetAt(1)->GetRecord(); CString str = reinterpret_cast<CXTPReportRecordItemText*>(pRecord->GetItem(1))->GetValue();
|
|
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 |