Add a new line of cell datagridview

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
Alexander said:
I tried
1. \ n
2. Environment.NewLine not work.
How, then insert a blank line in cell dgv?

I think a line break is rendered as such in the cells of a column if you
set the WrapMode for the column to true e.g.

gridView.Columns(1).DefaultCellStyle.WrapMode = _
DataGridViewTriState.True
 
Back
Top