Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Urgent: Constraints for rows/records
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Urgent: Constraints for rows/records

 Post Reply Post Reply
Author
Message
csunita View Drop Down
Groupie
Groupie


Joined: 14 July 2008
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote csunita Quote  Post ReplyReply Direct Link To This Post Topic: Urgent: Constraints for rows/records
    Posted: 29 August 2008 at 2:31pm

How does one add constraints/combo box for each of the rows or records in report control?

Meaning that for Column 2 for example, depending on the row number, the contents of the combo box are going to be different.

Can someone please explain with a code snippet?

 
Thanks.
Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2008 at 3:39am
Hi,
 
Constraint set in EditOptions. Look at TaskList form in our ReportSample to see how add constraint to EditOptions object.
 
EditOptions may be commom for whole column (stored in CXTPReportColumn) or it may be a separate object for CXTPReportRecordItem.
 
To get/create separate EditOptions for RecordItem just call
RecordItem->GetEditOptions(NULL).
 
For more details see implementation CXTPReportRecordItem::GetEditOptions.
 
Back to Top
csunita View Drop Down
Groupie
Groupie


Joined: 14 July 2008
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote csunita Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2008 at 11:06am
Thanks. That did it.
I was trying with RecordItem->GetEditOptions(pColumn), and that was a mess.
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.188 seconds.