DataGridView的常用设置

编辑列

  Name

  DataPropertyName

  HeaderText

  Width

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

RowHeaderVisible=false

SelectionMode=FullRowSelect

Readonly=true

 

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

你可能感兴趣的:(datagridview)