通过DataGridView控件 CellFormatting 事件来渲染
private void dgvFaFangD_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
dgv2.Rows[0].Cells["colcoumn"].Style.ForeColor = Color.Red; //20ms
}
设置后秒加载
本文介绍了一种使用DataGridView控件CellFormatting事件来快速渲染单元格的方法。通过设置特定单元格的样式属性,如字体颜色,可以在不增加额外延迟的情况下实现美观的效果。
通过DataGridView控件 CellFormatting 事件来渲染
private void dgvFaFangD_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
dgv2.Rows[0].Cells["colcoumn"].Style.ForeColor = Color.Red; //20ms
}
设置后秒加载

被折叠的 条评论
为什么被折叠?