C#: multiline text in DataGridView control

前端 未结 7 712
[愿得一人]
[愿得一人] 2020-11-27 21:12

Is it possible for the DataGridView control to display multiline text in a cell?

I am using Visual Studio 2005 and C#.

相关标签:
7条回答
  • 2020-11-27 22:10
    1- Datagridview > properties > DataGridViewCellStyle > WrapMode=True
    2 -Datagridview > properties > DataGridViewCellStyle > AutoRowSizeMode=AllCells
    3- Datagridview > properties > Cloumn >(cloumn selected which you want to multiline)
          DefaultCellStyle > Alingment=NotSet and WrapMode=NotSet
    
    0 讨论(0)
提交回复
热议问题