How to enable Devexpress XtraGrid cells edit password value with EditMask

Devexpress XtraGrid can be used to for users' inputting. In some cases, you may want an XtraGrid cell to accept a password. This article will describe how to use PasswordChar property to display password characters.

Step 1: Create a TextEdit Column
Choose the column in your Devexpress XtraGrid that allows users' passwords and Press F4 to open its properties Window.
In its properties Window, choose ColumnEdit and click New -> TextEdit. You can then rename your TextEdit to anything you like.

Step 2: Create a password mask for your TextEdit Column
Click the plus sign in the left of 'ColumnEdit' to display its content. Under 'ColumnEdit', locate 'PasswordChar' property.You can then enter * symbol to its content.  

No comments:

Post a Comment

Blog Archive

About Me

My photo
I am a software developer with roughly 5 years of experience in developing end-to-end solutions in C#, Java, C/C++, PHP and HTML/CSS/Javascript. At the moment, I am joining the Professional Doctorate in Engineering degree program in Software Technology at Eindhoven University of Technology. My areas of particular interest include software design, data structures and algorithms, problem solving, software security, embedded system, machine learning, and data science.