Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Report Control - Constraints per row
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control - Constraints per row

 Post Reply Post Reply
Author
Message
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Topic: Report Control - Constraints per row
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2006 at 11:25am

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
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2006 at 12:40pm
Yes, that's what I needed.

Thanks very much Oleg !

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.