GridView bound to ObjectDataSource: How to refresh the Data?

M

Max2006

Hi,

I have a GridView that is bound to an ObjectDataSource. After some
circumstances, the data behind the ObjectDataSource changes and I need to
refresh the ObjectDataSource. What is the best way to refresh the GridView's
data?

Thanks,
Max
 
W

Walter Wang [MSFT]

Hi Max,

I think simply rebinding the GridView by calling its DataBind() method will
cause it to load the data from the updated data backend. I hope I've not
misunderstood your question, please feel free to post some code if the
issue is more complicated. Thanks.



Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top