Ensuring text wraps in a dataGridView column

前端 未结 9 1591
感动是毒
感动是毒 2021-01-01 17:41

I have dataGridView with a particular column. When I write long text in dataGridView it shows me a shortened version, with ellipses, because the column isn\'t wide enough to

9条回答
  •  猫巷女王i
    2021-01-01 18:09

    Does setting this value help in achieving the display as you want

    dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCells;
    

    in addition to setting the WrapMode = DataGridViewTriState.True;

提交回复
热议问题