ASP.NET中的动态网格视图与静态网格视图的差异? [英] Difference dynamic gridview vs static gridview in ASP.NET?

查看:58
本文介绍了ASP.NET中的动态网格视图与静态网格视图的差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道asp.net中Dynamic Gridview和Static gridview之间的基本区别。

在我的应用程序中使用Both控件但我无法找到差异。



但我的想法,

1.

Hi All,
I want to know the basic difference between Dynamic Gridview and Static gridview in asp.net.
In my Application am using Both controls but i am not able to find the difference.

But my thoughts,
1.

Static gridview 

可能有性能问题



S请告诉我哪一个是最好的为什么?



问候,

stellus。



我尝试了什么:



can have performance issue

S please let me know which one is the best and why?

regards,
stellus.

What I have tried:

Difference Dynamic Gridview vs Static Gridview in  asp.net?

推荐答案

您无法区分任何差异,因为只有您正在使用该网站。如果将控件定义为静态,则每个用户都使用相同的GridView,如果站点忙,则会导致意外行为,例如用户看到彼此的数据。不要使用静态控件。
You can't tell any difference because only you are using the site. If you define the control as static then every user uses the same GridView and if the site is busy it will result in unexpected behaviour such as users seeing each other's data. Don't use static controls.


如果使用模板列 [ ^ ],因为我们正在编写自定义代码来修改渲染机制,所以它将花费一些时间而不是使用 autoGenerateColumns [ ^ ]



但是它取决于关于您将在gridview中实现的功能,请参阅此文章

ASP.Net - GridView - 概述将数据绑定到列的不同方法 [ ^ ]
The performance will differ if you use template columns[^], since we are writing the custom code to modify the rendering mechanism it will consume some time rather than using autoGenerateColumns[^]

however it depends on the functionality you are going to implement in the gridview, refer this article
ASP.Net - GridView - Overview of different ways to bind data to columns[^]


这篇关于ASP.NET中的动态网格视图与静态网格视图的差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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