Click here to Skip to main content
15,867,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
{"1INCH": {"bid": "0.54745250", "ask": "0.54155200", "time": 1655623776}}
--
em có 1 chuổi như này. gét từ web về richbox giờ làm sao cho hiển thị lên gridcontrol hoặc gridview ạ? giúp em với mn



Google Translate:
{"1INCH": {"bid": "0.54745250", "ask": "0.54155200", "time": 1655623776}}
--
I have a thread like this. I hate it from the web about richbox, how can I display it on gridcontrol or gridview? help me


What I have tried:

em không biết làm cách nào mọi người giúp em với
Google Translate:
I don't know how can anyone help me
Posted
Updated 18-Jun-22 22:06pm
v2

First, read the JSON string and convert it to C# classes: I use Newtonsoft JSON reader: Basic Reading and Writing JSON[^]

Then, just set the result as the DataSource property of the GridView.
 
Share this answer
 
You need to convert the JSON into .NET objects. Take a look at Json.NET - Newtonsoft[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900