Report Control - Constraints per row |
Post Reply |
Author | |
Warren
Groupie Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Posted: 17 January 2006 at 10:56am |
a Report Control question...
How do I add Constraints per row What I want to do (For example, from the sample code provided in: Samples->Report Control Sample->Task List Sample is to change the items in the drop-list in the "status" column (e.g. to remove "Not Started" from the list, depending on what has happened to a particular row) Right now, I do: CXTPReportColumn* pCol = report.AddColumn(...); pCol->GetEditOptions()->m_bAllowEdit = TRUE; pCol->GetEditOptions()->AddComboButton(); pCol->GetEditOptions()->AddConstraint(_T("Hello 0"), 0); pCol->GetEditOptions()->AddConstraint(_T("Hello 1"), 1); pCol->GetEditOptions()->AddConstraint(_T("Hello 2"), 2); but this gives me the same constraints for every row in the report control. What I want to do is customize the constraint list for each row. I'm using Toolkit Pro 9.81 Thanks Warren |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, for Item you need call pItem->CreateEditOptions() to create individual options and pItem->GetEditOptions() to access it instead pCol->GetEditOptions()
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Warren
Groupie Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
|
Yes, that's what I needed.
Thanks very much Oleg ! |
|
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 |