This is my first time using the WebDropDown control. I am setting the DataSource to a DataReader, setting the TextField and ValueField to column names, and then binding the DataSource. However, when the page is loaded, the items all show up with "System.Object[]" as the text for each item.
webDropDownPartnerTypes.DataSource = myDataReader
webDropDownPartnerTypes.DisplayMode = Infragistics.Web.UI.ListControls.DropDownDisplayMode.DropDownList
webDropDownPartnerTypes.TextField = "PA_DESC"
webDropDownPartnerTypes.ValueField = "PA_TYPE"
webDropDownPartnerTypes.DataBind()
Those two columns are the only columns returned. Am I missing something?
I tried a bunch of solutions, none of which worked. I eventually eliminated the problem by using a DataTable.
In the .aspx page, try setting the text and value fields through the WDD properties and bind programmatically. If that doesn't work, I would try binding a data table rather than a data reader.
Have you looked at the returned data to verify it contains values and not System.Object? this has occured to me when I didn't properly explain the fields...