The code below which I found on MSN did not worked to automatically word-wrap a cell:
dataGridView.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
dataGridView.Columns[0].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
Any more answer?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…