Hi Guys,
I am trying to solve a problem involving user-configurable "fields" on an object. Typically, these fields are configured by each client, and it is quite easy to access them programmatically - a quick example would be: Employee emp = new Employee(); emp.ExtendedFields["Some Field"].Value = "Hello World"; However this does not fit in very nicely with the front-end code which generally uses data binding. So I thought that I'd provide a way for data binding to work on these objects, but I guess I would have to write my own data binding classes to allow for this type of binding. Essentially, I am looking for a way to inherit from System.Windows.Forms.Binding and override whatever needs to be overridden to make this work. I am not getting anywhere in this effort though - for starters, I cannot get a class that inherits from Binding to compile - I get "No overload for method 'Binding' takes '0' arguments" no matter what I try (it could be something simple that I am missing). There are obviously a lot of other ways to handle this as well, I just thought that this might be elegant. Has anybody tried something similar, or am I going about this the wrong way in general? Regards, Daniel =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com