views:

1159

answers:

2

In some instances, I prefer working with custom objects instead of strongly typed datasets and data rows. However, it seems like Microsoft Reporting (included with VS2005) requires strongly typed datasets.

Is there a way to use my custom objects to design and populate reports?

+1  A: 

I believe you can set up SSRS to read data values from a more or less arbitrary object. This Link describes the IDataReaderFieldProperties object in the API which (IIRC) allows you to specify the getter method to invoke to get a value.

ConcernedOfTunbridgeWells
+3  A: 

I found the answer. Yes, it's possible. You just have to add a custom object as a datasource in visual studio.

http://www.gotreportviewer.com/objectdatasources/index.html

Jim