I\'m having problem with masking the password column. The code below works, but it doesnt work the way I want. While editing it do mask the password but when I am done and c
Assuming the the name of your DataGridView is dataGridView1 and the password column is 1, add this to CellFormatting:
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 1 && e.Value != null)
{
e.Value = new String('*', e.Value.ToString().Length);
}
}