如何使用来自SQL SERVER By Parent Child的json c#在Asp.net中绑定树gridview [英] How to bind tree gridview in Asp.net using json c# from SQL SERVER By Parent Child
本文介绍了如何使用来自SQL SERVER By Parent Child的json c#在Asp.net中绑定树gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用来自SQL SERVER的json c#在Asp.net中绑定树gridview按父子
How to bind tree gridview in Asp.net using json c# from SQL SERVER By Parent Child
推荐答案
为什么不将JSON转换为DataTable( http://www.c-sharpcorner.com/Blogs/15731/how-to-parse-json-string-to-dataset-in-C-Sharp.aspx [ ^ ]),
然后通过使用DataTable上的关系轻松绑定它(http://www.aspsnippets.com/Articles/Nested-GridView-with-TreeView-like-结构在ASPNet-using-C-and-VBNet.aspx [ ^ ])
您也可以使用JSON.Net。这可以帮助你解决问题..检查我粘贴的链接。
希望这有帮助!! :)
问候,
Praneet
Hi,
Why dont you convert your JSON to DataTable(http://www.c-sharpcorner.com/Blogs/15731/how-to-parse-json-string-to-dataset-in-C-Sharp.aspx[^]),
and then by using relation on DataTable you bind it easily(http://www.aspsnippets.com/Articles/Nested-GridView-with-TreeView-like-structure-in-ASPNet-using-C-and-VBNet.aspx[^])
Also you may use, JSON.Net. This can help you solve things.. check the links I pasted.
Hope this helps !!:)
Regards,
Praneet
这篇关于如何使用来自SQL SERVER By Parent Child的json c#在Asp.net中绑定树gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文