Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2007, 09:07 AM
Registered User
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with DataGridViewTextBoxColumn

I'm trying to hide a password shown as a DataGridViewTextBoxColumn in a DataGrid. Unlike a normal text box this DataGridViewTextBoxColumn does not have a PasswordCharacter property to display * instead of plain text. How can I achieve this?

 
Old September 11th, 2007, 10:06 AM
Registered User
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After waiting helplessly for an answer I've decide to rephrase my question.

All I would I would like to do is hide password characters for example, if the password is "labdt" I want it to be displayed as "*****" in System.Windows.Forms.DataGrid control. how can I achieve this?

Please help

 
Old February 21st, 2008, 01:19 PM
Registered User
 
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do you really need to diplay that column at all?

You could hide it

dgv1.Columns[1].Visible = false;











Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.