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 11 months and 1 day 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: Mon Apr 01, 2024 3:01 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: Mon Apr 01, 2024 3:01 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 542 times
screen shot of unhandled exception
User avatar
brittneyr
Site Admin
Posts: 1670
Last visit: Tue Apr 16, 2024 7:13 am
Answers: 39
Been upvoted: 31 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 11 months and 1 day 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