Last post Oct 11, 2005 11:42 AM by btrabon
Oct 07, 2005 03:51 PM|btrabon|LINK
I've got a control that I'm writing where I want to create a collection of objects to manage what data should be shown on my control. The objects being created and added to my collection have some very simple properties that
allow the user (namely me for now) to reorder the way the data is displayed, change the label used with the data and set a particular item to hidden if I do not want it to be shown (in the case of identity fields). I strugled with it last night, and could
not get the collection to build when I set my DataSource property through the property grid. I'm assuming this is when my overridden DataBind method should be called at design time, but is there another method I should be overriding to achieve this functionality?
If you need an example of what I'm talking about you can look at the Infragistics controls; when you databind at design time the controls will build a collection that you can modify to tell the control how to arrange the data visually. When I used Lutz Reflector
on the control it does appear that this collection is built from the DataBind method, but I could be wrong. Anyone got any ideas?
Oct 11, 2005 11:42 AM|btrabon|LINK