Click here to Skip to main content
15,920,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I refresh a gridview that is using sqldatasource on page refresh?
Posted
Updated 4-Apr-11 23:58pm
v2
Comments
Slacker007 5-Apr-11 5:55am    
@ayo ajayi: What have you done so far and what is not working for you? This way we can help you more. Thanks.
Sandeep Mewara 5-Apr-11 6:23am    
Care to elaborate what are you trying to do?

Currently, your question does not make much of a sense.
Orcun Iyigun 5-Apr-11 6:23am    
If I understand you correct I think simply rebinding the GridView by calling its DataBind() method will solve your problem because it will load the data again.

yourgridviewname.DataBind();

i just had to bind the gridview to a datareader and redo that anytime i want fresh data
 
Share this answer
 
rebind your sqldatasourec control on refresh.
 
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