471,317 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

propertygrid and nullable types

i'm using a propertygrid to show / edit values of a class that i have.
I'm using the new(er) nullable types and it's showing the value of
these items as empty (as i would think), but the propertygrid doesn't
seem to associate the proper editing control.

for example: i have:

DateTime? _actualReceivedDate;


DescriptionAttribute("Actual date mail was received by customer")]
public DateTime? ActualReceivedDate
return _actualReceivedDate;
_actualReceivedDate = value;


it displays this item in the property grid properly, but when you edit
the item, it doesn't display the standard DateTime editor that it would
with the DateTime type. Can i get around this?

Thanks in advance!

Dec 6 '05 #1
0 1253

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by John Wood | last post: by
1 post views Thread by Riko Eksteen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.