PropertyGrid editor: DateTime numericUpDown

M

Monica Graber

Do you know how can I change the default editor of DateTime in a
propertyGrid in order to control date/time value ( like the ShowUpDown
using DateTimePicker control), i.e. without Calendar, that only controls
date information.

Is it possible ? Do you have some idea ?

Where can I find information about that ?

I really appreciate your answer...

Monica
 
M

mevar81

I think you must implement you own UITypeEditor.
To do this you must create a class that inherits from
UItypeEditor.
Then you must apply the attribute Editor before the
property that access your DateTime object. In the
following example DateTimeEditor is the class that
implement your custom editor.
EditorAttribute(typeof(DateTimeEditor),typeof
(System.Drawing.Design.UITypeEditor));

Hope this help you,if I understand your problem.
 
B

Bob Powell [MVP]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top