XtraReports and ObjectAdapter...HELP!!!

XtraReports and ObjectAdapter...HELP!!!

Old forum URL: forums.lhotka.net/forums/t/3537.aspx


daleedom posted on Thursday, September 13, 2007

I am trying to make this all work.  But I am missing something.

How would I wire a ROC into an XtraReports?  Do I got into the report code and adjust the BindingSource or should I setup the ObjectAdapter so XtraReports sees things like a normal dataset?

Any hints or directions would be great.

Dave

P.S. I'll be reading up on the ObjectAdaptor tonight.

Q Johnson replied on Friday, September 14, 2007

You should be able to set the report's DataSource property directly to your ROC.  It will support any object that implements IList for its DataSource.

And if you just want to use a Root object (that doesn't support IList), you can just create an arraylist, add your object to it, and then use that arraylist for the report's datasource.  Very nice.  No need to fool with the data adapter at all.

Copyright (c) Marimer LLC