Add a new line of cell datagridview

  • Thread starter Alexander Vasilevsky
  • Start date
A

Alexander Vasilevsky

I tried
1. \ n
2. Environment.NewLine not work.
How, then insert a blank line in cell dgv?

http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
Gift
 
M

Martin Honnen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top