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
Auto sizing cell height on word wrap
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.
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.
Re: Auto sizing cell height on word wrap
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
$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
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: Auto sizing cell height on word wrap
Moved to correct forum by moderator
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.