编辑列

  Name

  DataPropertyName

  HeaderText

  Width

行为里的六个allow全部置为false

RowHeaderVisible=false

SelectionMode=FullRowSelect

Readonly=true

 

RowPrePaint事件中 e.PaintParts=DataGridViewPaintParts.All^DataGridViewPaintParts.Focus

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
猜你喜欢
  • 2021-07-16
  • 2022-02-23
  • 2022-02-16
  • 2021-07-23
  • 2021-10-19
相关资源
相似解决方案