Urgent: Constraints for rows/records |
Post Reply |
Author | |
csunita
Groupie Joined: 14 July 2008 Status: Offline Points: 19 |
Post Options
Thanks(0)
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.
|
|
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
|
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.
|
|
csunita
Groupie Joined: 14 July 2008 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Thanks. That did it.
I was trying with RecordItem->GetEditOptions(pColumn), and that was a mess. |
|
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 |