Is it possible to prevent a multi line HeaderText in a DataGridView?

前端 未结 4 1499
滥情空心
滥情空心 2021-02-18 17:50

When the length of the HeaderText property reaches a certain character limit and there is a space in the text, WinForms automatically inserts a link break in the he

4条回答
  •  自闭症患者
    2021-02-18 18:39

    The ColumnHeadersDefaultCellStyle property of the DataGridView has a boolean property called WrapMode. This is true by default. Make it false to set the required behaviour.

提交回复
热议问题