Reloading GridView contents

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

How can I refresh the contents of a gridview that's on a different
form than the one I'm using? The gridview is bound to a datasource,
and in this other form I'm writing to the database that this
datasource is created by. I have to manually close and restart my app
to see the updated contents in the gridview. Any suggestions are
appreciated.
 
Ok, that makes sense. And in that method, the actual command to
refresh the gridview is 'gridview.refresh()' ? Or do I need to re
bind the datasource? And if so, how?

Thanks!!
 
Ok, so I have this public function on the same form as the gridview,
that basically sets its datasource to null, and rebinds it after
running a query. If I call that function, from within the same form,
the gridview refreshes just fine. But if I call that public function
from a different form, it doesn't do anything. Not sure where to go
from here...
 

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

Back
Top