Does anyone know if there's a way to get web form ListControl data binding to work with public fields as well as public properties when binding to an array of objects (not a dataset)? When I set the DataTextField property to a public field name, the control throws an exception, but if it's a property, it works fine.
If you're wondering why I would be creating a class with public fields, I'm not - the objects are web service proxies automatically generated by Microsoft's WSDL.EXE. It generates them with public fields rather than property getter/setters. My web service method returns an array of these things, and I would like to be able to take advantage of data binding to display them in a web form app. It doesn't look good for that idea at the moment. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.