Password DataGridViewCell

Answered
0
0

Hi, everybody! Please tell me if it is possible to add a new cell type to the DataGridView with the password entry format.  Like this

Attachment
  • You must to post comments
Best Answer
0
0

Yes in several ways:

  1. In the event DataGridView.EditControlShowing set ((TextBox)e.Control).PasswordChar = ‘*’;  Or
  2. Assign your TextBox instance to DataGridViewColumn.Editor once.
  3. Create a custom column type with related javascript rendering code

Option 1 is the easiest and best.

Attachment
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.