I've used code behind to set up an array to supply values for a dropdown parameter. This works fine if the Display Member and Value Member are the same. But now I have a scenario where I want to have a dropdown where the display shows text and the value is an integer. There are only a few values so I didn't think I would need to create a SQL table for them, but I haven't got this to work yet.
Here is the code:
This works, but I can't figure out what to set for the DisplayMember property. I can use =Fields.Item to get the number for the ValueMember, but I don't know what to use for the DisplayMember. Any ideas?
Thanks
Here is the code:
Public
Sub
New
()
InitializeComponent()
Dim
aryorder(,)
As
String
= {{0,
"Lot"
}, {1,
"Address"
}}
Me
.ReportParameters(
"Order"
).AvailableValues.DataSource = aryorder
End
Sub
This works, but I can't figure out what to set for the DisplayMember property. I can use =Fields.Item to get the number for the ValueMember, but I don't know what to use for the DisplayMember. Any ideas?
Thanks