Datagridview data binding issue while cell value has {}

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.
Post Reply
ivan.liao@live.com
Posts: 1
Joined: Sat Mar 09, 2019 4:47 am

Datagridview data binding issue while cell value has {}

Post by ivan.liao@live.com » Thu Sep 05, 2019 5:12 pm

Hi Everyone,

I recently has a project need to show some data query from SQL server and display them with a Datagirdview.
Most of query results are pretty well done by data binding for DGV.
But it will got error if data table object has some data with {}. Seems DGV cannot display a cell with value like {some text here}.

How can I get this done?
Thanks in advance!

User avatar
jvierra
Posts: 13732
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Datagridview data binding issue while cell value has {}

Post by jvierra » Thu Sep 05, 2019 5:39 pm

What is the field type. It appears that the field is an array type and must be converted for display in a DGV.

Post Reply