编辑列
Name
DataPropertyName
HeaderText
Width
行为里的六个allow全部置为false
RowHeaderVisible=false
SelectionMode=FullRowSelect
Readonly=true
RowPrePaint事件中 e.PaintParts=DataGridViewPaintParts.All^DataGridViewPaintParts.Focus
编辑列
Name
DataPropertyName
HeaderText
Width
行为里的六个allow全部置为false
RowHeaderVisible=false
SelectionMode=FullRowSelect
Readonly=true
RowPrePaint事件中 e.PaintParts=DataGridViewPaintParts.All^DataGridViewPaintParts.Focus