Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all,
Here i want to add dynamic row in Gridivew. Here i done using Viewstate. But in my project Here i need to do some calculation look like sales or purchase Screen. and have Item dropdown To load and Item Have minimum 500 count. If i using Viewstate Grid should be Slow for 30 rows. Any Other suggestion to do Dynamic Grid be Fast(Here I need to add minimum 100 row of per Invoice).

What I have tried:

Here i done DynamicGridView Using Viewstate,FirstRow,SetPreviousRow,SetRowdata.
Posted
Updated 10-Oct-16 11:05am
Comments
ZurdoDev 10-Oct-16 11:50am    
If you want speed then use a client side grid, like jqgrid.

1 solution

You need to be careful when using ViewState to avoid page performance issue. Also ViewState has a limit when it comes to size, so make sure that you don't store a huge amount of data in it.

As already suggested, you can use JavaScript/jQuery to add dynamic controls at the client. That way all interactions only happens at the browser, so you can have a fast response. Just google "adding dynamic textbox using jquery" to get more examples. Here's one I found: How to add / remove textbox dynamically with jQuery[^]
 
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