This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Is there a way to "blank out" a property type which contains a null value? I'd like to show a blank field instead of the default value for a Type (ex: "0" for Doubles, etc)?
Thnaks Chris - Emerson Electric |
|
|
The property grid doesn't have built-in support for this, so you would need to customise the standard editor templates (actually, probably only the SimpleTextEditorKey template I guess). The approach would be to add a Converter to the binding which, in its Convert method, converted the default value to an empty string, and conversely in ConvertBack. There are samples which show how to customise standard editors using BuiltInEditorStyles, though I don't think we have a sample specifically for the text editor. Let us know if you need additional info. |
|