DataGridView put text in ColumnHeader of RowHeader

后端 未结 1 1652
终归单人心
终归单人心 2020-12-20 16:07

Is it possible to add text into ColumnHeader of the RowHeader. I put autoincrement into Rowheaders of my DataGridView and I would like to put \"No.\" above that.

Som

相关标签:
1条回答
  • 2020-12-20 16:18

    So basically you need to display "No." in top left corner?

    That area is called TopLeftHeaderCell. It is just like the other DataGridViewCell, you can set its Value property to achieve the task.

    dataGridView.TopLeftHeaderCell.Value = "No.";
    
    0 讨论(0)
提交回复
热议问题