Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用DataGridViewand Wrap="True"。
DataGridView
Wrap="True"
但是当我在 DataGridView 中输入文本时。文本在单元格内上升。但我希望 DataGridView 中的整行自动下降。
结果不正确:
正确的结果:
解决方案是什么?
你必须设置
AutoSizeRowsMode = DisplayedCell
和
RowDefaultCellStyle: WrapText=True