I would like to display a column in a datagridview as a column which contains password chars.I cannot figure it out why does this event is not triggered by the datagridview.
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if(e.ColumnIndex == 3)
{
if(e.Value != null)
{
e.Value = new string('*', e.Value.ToString().Length);
}
}
}
Help please.