DGV - Column not sorting and causes an unhandled exception.

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 10 months and 1 week 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
owinsloe
Posts: 161
Last visit: Tue Mar 26, 2024 8:14 pm
Been upvoted: 1 time

DGV - Column not sorting and causes an unhandled exception.

Post by owinsloe »

Product: PowerShell Studio 2023 (64 Bit)
Build: v5.8.221
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.22621.0

I'm guessing this is a windows thing as the tooltip contains 'An exception may occur if sorting large column data' which isnt something I updated. The following column has the same tooltip text but sorts fine.

The error is 'object must be type string'.

Is there something I can do under the covers to correct this?
User avatar
owinsloe
Posts: 161
Last visit: Tue Mar 26, 2024 8:14 pm
Been upvoted: 1 time

Re: DGV - Column not sorting and causes an unhandled exception.

Post by owinsloe »

Untitled.jpg
Untitled.jpg (65.63 KiB) Viewed 537 times
screen shot of unhandled exception
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: DGV - Column not sorting and causes an unhandled exception.

Post by brittneyr »

[Topic was moved to PowerShell GUIs forum by moderator]
Brittney
SAPIEN Technologies, Inc.
This topic is 10 months and 1 week 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