用:CellPainting 事件去修改颜色不会那么卡

private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
        {

            if (e.ColumnIndex >= 0 && rcomdgv1.Columns[e.ColumnIndex].Name == "字段名称")
            {
                if (Collections.Entity.to_double(e.Value) > 0)
                {
                    e.CellStyle.BackColor = Color.Red;
                }
                else
                { }
            }
          
         
        }

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-10-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案