Is it possible to have Multi-line DataGridView cells without wrapping text?

前端 未结 7 1988
暖寄归人
暖寄归人 2021-02-14 07:47

I know I can set WrapMode to true on the DefaultCellStyle of the RowTemplate, however this doesn\'t give me the behaviour I want. I am dis

7条回答
  •  滥情空心
    2021-02-14 08:21

    I have not found a way to do this without setting WrapMode to true. However, you should be able to "trick" the DataGridView into doing this by setting the width of the cell to be wide enough to display all items on a single line.

    Here's an example of this being done with a ComboBo.

提交回复
热议问题