I don't know if this will satisfy you, but you can use Environment.NewLine to create a simple line break inside the cell.
Example:
string nl = Environment.NewLine; // new line variable string data = "1 2 3" + nl + "4 5 6" + nl + "7 8 9";
Added later:
As Adrian said in the comments - you will need:
set WrapMode for DataGridViewColumn to DataGridViewTriState.True
make sure you set the height for the row or set the DataGridView AutoSizeRowsMode to DataGridViewAutoSizeRowsMode.AllCells
If you do not want to edit this column, you can set the DataGridView.Column.ReadOnly property to true .
Update: It took me a while to find this property with the above information. In VS C # 2017, WrapMode is in the Data View dialog box of DefaultCellSytle .
Kamil source share