This may be easy and obvious to others, but it’s taking me for a ride. Can anyone help?
The immediate goal is to display an expandable list sorted by headline. The larger goal is to learn, by implementing this list, how to extend and customize controls. But let’s get the basic job done first.
· I’ve created a DLL that has a static class, containing a static method, that returns a DotNet List<custom type> (the custom type contains Headline and Content properties). I’ve attempted to point to this data source in the expandable list’s CustomDatasource property, but it won’t accept it. I’ve tried <namespace>.<classname>.<methodname>, and as many varieties as I could think of, but no luck. How exactly is CustomDataSource used? How do I define the datasource, where do I put it, and what’s the correct syntax for referencing it and using it declaratively? This would seem the best option, but if this isn’t possible, maybe another approach would work.
· I’ve started trying to wrap a list in a custom user control, and access my datasource directly. What class, in what assembly would need to be overridden to do this for an expandable list?
If all of this is documented somewhere and I’ve missed it (I admit this is possible), please let me know where to look. Everything I’ve read has done little to get me to my goal.