I’d like to add a new dataBinding to a control in a report.
Usually I add a IEnumerable<someObject> to my bindings:
this.MyControl.DataBindings.Add("Text", this.CustomerDataSource, "Name");
But now I’d like to use an IEnumerable<string>
this.MyControl.DataBindings.Add("Text", this.MyStringDatasource, "?");
What would be the dataMember in this case? (I’m using a XtraReport from devExpress)
It wouldn’t surprise me if that simply won’t work; however, you can use a trivial projection, such as:
Then the member name is
"Value"