ASP.NET中的N级嵌套gridview [英] N level nested gridview in ASP.NET

查看:69
本文介绍了ASP.NET中的N级嵌套gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何实现'Hierarchical'gridview的任何想法?基本上我想要当用户点击'+',我展开并插入新行而没有整页回复。



还有一件事就是我想要n级嵌套网格视图(不是两层或三层)。



这在ASP.NET和c#中是否可行?



请尽快放下宝贵的反馈...



谢谢

Any ideas on how I can acheive 'Hierarchical' gridview? Basically I want when the user clicks on the '+', i "expand" and insert new rows without a full page post back.

one more thing is that i want n level nested grid view(not two or three level).

Does this possible in ASP.NET and c# ?

Please drop your valuable feedbacks ASAP...

Thanks

推荐答案

I相信嵌套数据网格是容易出错的设计。相反,您应该使用Ajax / Jason从服务器检索数据,然后使用JQuery或JavaScript将该数据添加到HTML表中。



以下几个链接可供参考关于Ajax / Jason和JQuery。



用于ASP.NET 2.0的简单JSON处理程序实现AJAX功能 [ ^ ]



< a href =http://www.ezzylearning.com/tutorial.aspx?tid=5869127> http://www.ezzylearning.com/tutorial.aspx?tid=5869127 [ ^ ]



ASP.NET - JSON - 序列化d反序列化 [ ^ ]



在jQuery中添加表行 [ ^ ]
I believe nested data grid is error prone design. Instead you should use Ajax/Jason for retrieving data from server then add that data into HTML table using JQuery or JavaScript.

Below are few links which you can use for reference about Ajax/Jason and JQuery.

Simple JSON Handler for ASP.NET 2.0 to Implement AJAX Functionality[^]

http://www.ezzylearning.com/tutorial.aspx?tid=5869127[^]

ASP.NET – JSON – Serialization and Deserialization[^]

Add table row in jQuery[^]


这篇关于ASP.NET中的N级嵌套gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆