UITypeEditor and Model View Controller RRS feed

  • Question

  • I am looking for a best practices here:

    I am using a MVC design pattern to separate the code.  I would like to put one of the model classes straight into a PropertyGrid control and set the EditorAttribute on one of the properties to a custom UITypeEditor.  The editor is a picker control that allows the user to pick from a large set of options in a database.

    Does the custom UITypeEditor belong in the View or in the Model?  If in the View, how does the Model get back to the View?  If in the Model, how does the Model get back to the Controller to get the list of options from the database?

    Tuesday, June 9, 2009 4:58 PM