Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear everyone,
I tried this for getting newline in DataGridView Cell in my VB.Net application:
VB
environment.Newline"

But it doesn't work.
I Tried some other ways but nothing is done.

Please help me. ( a hint is okay)
Thank in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Aug-15 14:03pm    
That is System.Environment.NewLine. It does work, period.
—SA

1 solution

I think you are looking for this[^]

Setting WrapMode property of DataGridViewCellStyle to true should be able to help you out.
 
Share this answer
 
v2
Comments
Tokia 3-Aug-15 13:11pm    
It WORKS, my Friend. THANK A LOT.
Abhipal Singh 3-Aug-15 13:16pm    
Can you post your code which is populating the cell contents?
Tokia 3-Aug-15 13:16pm    
REALLLY THANK. U SAVED MY LIFE. It's for real.
Abhipal Singh 3-Aug-15 13:17pm    
Welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900