DataGridView单元格显示密码
2021-01-20 19:13
标签:tag tar mat val 单元 index new object format private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) DataGridView单元格显示密码 标签:tag tar mat val 单元 index new object format 原文地址:https://www.cnblogs.com/wfy680/p/12121407.htmlDataGridView单元格显示密码
{
if (e.ColumnIndex == 1)
{
if (e.Value != null && e.Value.ToString().Length > 0)
{
e.Value = new string(‘*‘, e.Value.ToString().Length);
}
}
}
文章标题:DataGridView单元格显示密码
文章链接:http://soscw.com/index.php/essay/44670.html