« CodeStriker with Visual Source Safe | Main | Mac's Boot Camp »
February 27, 2006
Removing PromptChar on Infragistics' cell based editing
If you are using Infragistics' UltraWinGrid and trying to fiddle with the cell based editor, you'll quickly find out that you can't remove the annoying default PromptChar ('_'). I don't know what the standard is in the US but here in Australia we never use that '_'.
So if you're thinking to use UltraMaskedEdit and remove the PromptChar you'll be sorely disappointed because it doesn't work. The trick is to set both the UltraMaskedEdit's PromptChar and the grid's column's PromptChar to '_'. Thanks to Infragistic's tech support, I probably wouldn't have found this solution myself.
For example:
ultraGrid1.DisplayLayout.Bands[0].Columns[0].PromptChar=' ';
and
this.ultraMaskedEdit1.Name = "ultraMaskedEdit1";
this.ultraMaskedEdit1.PromptChar = ' ';
Posted by vhadiant at February 27, 2006 08:04 AM
Trackback Pings
TrackBack URL for this entry:
http://www.hadianto.net/mov32/mt-tb.cgi/156
