I am using DevExpress XtraReports and have been able to make it work using a BusinessBindingSource as a DataSource, and then linking that BBS to a BO which has my report data in it. I have done this many times already and have had no problems thus far. I have been working on a problem for the past few days and haven't been able to figure out a solution.
I have several custom field properties on my BO which I have bound to fields in my report. There are also several "regular" BO properties which link directly to fields in the db table. The custom fields are all showing as blank, but the regular properties are showing as the correct values. I don't think it is even getting to the code for the custom properties since I have set break points in them which are not getting hit. I even tried hardcoding one of them to return a string value which also didnt show up.
Its almost like it doesnt know how to find the custom properties. I thought it was a problem with the binding, but if it can find the non-custom properties then it is binding correctly (I think). Here is an example of one of the custom properties:
<Browsable(
False), _
BusinessFieldDisplayInEditor(), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property TransferAmt() As Decimal
Get
Return FixAmt(Me.CurrentRow.Item("TransferAmt"))
End Get
End PropertyAnd I am also adding the custom property descriptors as I am supposed to, like the following:
Protected
Overrides Function GetCustomBindablePropertyDescriptors() As MicroFour.StrataFrame.Business.FieldPropertyDescriptor()Return New MicroFour.StrataFrame.Business.FieldPropertyDescriptor() { _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("FacilityDescr", GetType(DailyTransactions)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("DisburseAmt", GetType(DailyTransactions)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("PaymentAmt", GetType(DailyTransactions)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("StmtAmt", GetType(DailyTransactions)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("FeePostAmt", GetType(DailyTransactions)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("TransferAmt", GetType(DailyTransactions))}End Function
Any advice, ideas, suggestions, etc? Thanks! I'm really stuck on this one.