Wednesday, 15 June 2011

How to add json data in a combobox column using c#? -



How to add json data in a combobox column using c#? -

this dummy json file.i want display name , mapped_name in datagridview.mapped_name combobox column.so suppose when name column contains button mapped_name column should contain combox box having options linklabel , button.

{"components":[ { "id":"1", "name":"button", "mapped_name":[ {"id":"1", "name":"linklabel" }, {"id":"2", "name":"button" } ] }, { "id":"2", "name":"listview", "mapped_name":[ {"id":"1", "name":"tabview" }, {"id":"2", "name":"listview" }, {"id":"3", "name":"tiles" } ] }

i suggest utilize json.net parse info , display it. can utilize jsontextreader class

see samples here check help

c# json

No comments:

Post a Comment