Header rows for filtering purposes :) |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 27 February 2008 at 11:55am |
Shouldn't this line guarantee that this record item is always at the top row?
int CFilterRecordItemEdit::Compare(CXTPReportColumn* pColumn, CXTPReportRecordItem* pItem)
{ return pColumn->IsSortedIncreasing() ? -1 : 1; } Basically, I'm trying to implement Office-like column filters and they must be placed at the top row no matter how the user sorts the items. The problem is that the above code works in 95% of the cases. Somehow, I sometimes manage to get this row at row 3/1000 and similar odd results.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I'm quite sure this is a bug. I'll send a sample project to Codejock Support, but until then, could anybody please answer this? Q: How do I make sure a specific record is always at row N (0 in this case)?
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
A: I usually solve my problems after posting them here. It's magic!
m_wndReport.GetHeaderRecords()->Add(new CFilterRecord());
m_wndReport.ShowHeaderRows(TRUE); |
|
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 |