Auto sizing cell height on word wrap

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
IanUoY
Posts: 62
Joined: Wed Jul 31, 2013 2:09 am

Auto sizing cell height on word wrap

Post by IanUoY » Thu Dec 07, 2017 5:45 am

v5.4.145
64-bit

Ok, I cannot get cells with text displayed in a datagridview to increase the size of the cell to accommodate the text when word wrap set to true.
The really bizarre thing is that I have other forms where it does seem to work (and I cannot for the life of me see any difference in setup). It is a two columned datagridview with 1 column hidden.

Any help most appreciated.

Thanks

User avatar
IanUoY
Posts: 62
Joined: Wed Jul 31, 2013 2:09 am

Re: Auto sizing cell height on word wrap

Post by IanUoY » Thu Dec 07, 2017 7:35 am

Managed to get working, by adding :

$dgvCourseRoutes.AutoResizeRows()

after I'd populated the rows.

Although I did not do this in the script for the previous form(s) which did work.

Ian