Wrap text in cell of row in DGV

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
localpct
Posts: 397
Last visit: Thu Oct 27, 2022 5:57 am

Wrap text in cell of row in DGV

Post by localpct »

Hello, is there a way to wraptext in a cell of a row

I'm trying to make a DGW to recall previous notes I've made. Everything works exactly but I cannot figure out which properties to change in my DGV to make this happen. As you can see, this is what it produces
Attachments
DGV.png
DGV.png (21.91 KiB) Viewed 1247 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Wrap text in cell of row in DGV

Post by jvierra »

Set the DefaultCellStyle "WrapMode" to "True".
User avatar
localpct
Posts: 397
Last visit: Thu Oct 27, 2022 5:57 am

Re: Wrap text in cell of row in DGV

Post by localpct »

Doh!!! I was even in that section looking for it
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked