Click here to Skip to main content
15,914,162 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 
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?
Posted
Updated 20-Sep-17 18:07pm
Comments
Karthik_Mahalingam 20-Sep-17 8:50am    
what do you mean by static gridview?
template columns?
stellus 20-Sep-17 14:08pm    
normal gridview
<asp:gridview id="grd" runat="server"/>

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.
 
Share this answer
 
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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900