GridView / DetailsView / FormView在ASP.net中的主要区别是什么? [英] What is the major difference between GridView/DetailsView/FormView in ASP.net

查看:133
本文介绍了GridView / DetailsView / FormView在ASP.net中的主要区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GridView,DetailView,FormView有什么相似之处和不同之处?

What are the similarities and differences between GridView, DetailView, FormView?

什么时候使用这些控件的时候会出现什么情况?为什么?

What are use case scenarios for when you would use each of these controls and why?

推荐答案

GridView将它们全部显示为HTML表格。如果单击一行中的某个键,DetailView会在单独的空间中显示该行的详细信息。如果您需要插入新行,FormView也会出现在单独的空间中。

GridView shows them all like an HTML table. If you click on a key in a row, DetailView shows the details for the row in a separate space. If you need to insert a new row, FormView appears also in a separate space.

这篇关于GridView / DetailsView / FormView在ASP.net中的主要区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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