标签:tag tar mat val 单元 index new object format
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 1)
{
if (e.Value != null && e.Value.ToString().Length > 0)
{
e.Value = new string(‘*‘, e.Value.ToString().Length);
}
}
}
标签:tag tar mat val 单元 index new object format
原文地址:https://www.cnblogs.com/wfy680/p/12121407.html