Can you give an example of how or where to set the row height on a datagridview?
I want to use it on a touchscreen and want the cells to be bigger to be easier to touch.
Thanks,
Scott
Row height on datagridview
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: Row height on datagridview
I removed the duplicate PowerShell Studio topic.
You can set the height of a row by accessing the row's object:
You can set the height of a row by accessing the row's object:
- foreach ($Row in $datagridviewResults.Rows)
- {
- $Row.Height = 20
- }
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- swindmiller
- Posts: 64
- Last visit: Tue Aug 22, 2023 11:59 am
Re: Row height on datagridview
Perfect, this worked great!
And sorry I had deleted that post that I posted in the wrong forum, not sure why it still showed up.
Thanks!
And sorry I had deleted that post that I posted in the wrong forum, not sure why it still showed up.
Thanks!