I'm using a PropertyGrid in my application and all is well apart from one thing. One of the properties is a password. Does anyone know how to force the ProperyGrid to display another character (like a *) to be displayed instead of the actual data. Is there a way of getting access to the GridItems control (in this case the textbox)?
Any ideas or suggestions would be great.
Thanks in advance
Andy
MigrationUser 1 Thursday, October 28, 2004 7:20 AM
I don't think you can change the grid display itself, but you could not allow text to be entered there by using a TypeConverter with CanConvertFrom returning false for strings. Then use a UITypeEditor to pop up a dialog where you can enter the password in a masked form.
MigrationUser 1 Friday, October 29, 2004 9:53 AM
Also, in the ConvertTo, when converting to a string, convert to a series of *.
MigrationUser 1 Wednesday, November 03, 2004 1:55 PM