Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
GeneralMasking input in a datagrid Pin
Wjousts14-Oct-03 7:23
Wjousts14-Oct-03 7:23 
Is there a way to do this? I tried setting the PasswordChar of the textbox contained in my datagrid, but that only masks the text when that textbox is selected. If you click away from the textbox the masked text is revealed again. I'm binding to an array of MyClass objects contained within another object.

Here's my code:

<br />
dgServers.SetDataBinding(myClassCollection,"MyArray");<br />
DataGridTableStyle myTS = new DataGridTableStyle();<br />
myTS.MappingName = "MyClass[]";<br />
DataGridTextBoxColumn myCS = new DataGridTextBoxColumn();<br />
myCS.MappingName = "Password";<br />
myCS.Width = 500;<br />
myCS.TextBox.Multiline = false;<br />
myCS.TextBox.PasswordChar = '*';<br />
myTS.GridColumnStyles.Add(myCS);<br />
dgServers.TableStyles.Add(myTS);<br />


What do I need to override to get this to work?

Thanks
GeneralRe: Masking input in a datagrid Pin
Wjousts15-Oct-03 5:52
Wjousts15-Oct-03 5:52 
General.net dll compatibility Pin
mikemilano14-Oct-03 6:45
mikemilano14-Oct-03 6:45 
GeneralRe: .net dll compatibility Pin
leppie14-Oct-03 7:58
leppie14-Oct-03 7:58 
Generalproblems with html page detagging Pin
ttornade14-Oct-03 6:01
ttornade14-Oct-03 6:01 
GeneralRe: problems with html page detagging Pin
Not Active14-Oct-03 6:43
mentorNot Active14-Oct-03 6:43 
GeneralRe: problems with html page detagging Pin
ttornade14-Oct-03 8:00
ttornade14-Oct-03 8:00 
General.NET Security Pin
Norman Fung14-Oct-03 4:09
Norman Fung14-Oct-03 4:09 
GeneralPass a parameter to a thread Pin
eggie513-Oct-03 17:00
eggie513-Oct-03 17:00 
GeneralRe: Pass a parameter to a thread Pin
J. Dunlap13-Oct-03 17:07
J. Dunlap13-Oct-03 17:07 
GeneralRe: Pass a parameter to a thread Pin
eggie513-Oct-03 17:09
eggie513-Oct-03 17:09 
GeneralRe: Pass a parameter to a thread Pin
Bo Hunter13-Oct-03 18:08
Bo Hunter13-Oct-03 18:08 
GeneralRe: Pass a parameter to a thread Pin
eggie514-Oct-03 13:07
eggie514-Oct-03 13:07 
GeneralRe: Pass a parameter to a thread Pin
Guillermo Rivero14-Oct-03 13:20
Guillermo Rivero14-Oct-03 13:20 
GeneralRe: Pass a parameter to a thread Pin
Minh Truong13-Oct-03 18:08
Minh Truong13-Oct-03 18:08 
GeneralRe: Pass a parameter to a thread Pin
eggie515-Oct-03 14:49
eggie515-Oct-03 14:49 
GeneralRe: Pass a parameter to a thread Pin
Corinna John13-Oct-03 19:55
Corinna John13-Oct-03 19:55 
QuestionCan C# project complied to win32 dll? Pin
NotProfessional13-Oct-03 15:15
NotProfessional13-Oct-03 15:15 
AnswerRe: Can C# project complied to win32 dll? Pin
Minh Truong13-Oct-03 18:11
Minh Truong13-Oct-03 18:11 
AnswerRe: Can C# project complied to win32 dll? Pin
Bo Hunter14-Oct-03 13:21
Bo Hunter14-Oct-03 13:21 
QuestionHow can i set disk VolumeName in C#(winform) Pin
newpant13-Oct-03 13:51
newpant13-Oct-03 13:51 
AnswerRe: How can i set disk VolumeName in C#(winform) Pin
newpant14-Oct-03 4:46
newpant14-Oct-03 4:46 
AnswerRe: How can i set disk VolumeName in C#(winform) Pin
newpant16-Oct-03 12:33
newpant16-Oct-03 12:33 
GeneralPrompting use for file immediately Pin
Joe Woodbury13-Oct-03 12:41
professionalJoe Woodbury13-Oct-03 12:41 
GeneralRe: Prompting use for file immediately Pin
leppie13-Oct-03 13:03
leppie13-Oct-03 13:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.