Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

FlexGrid not refreshing

FlexGrid not refreshing

FlexGrid not refreshing

I have a flexgrid bound to an ADO Data control which has its cursor set to client-side and dynaset type set to dynamic. When I add things to the recordset the flexgrid doesn't show the new items, even if I force a refresh on the data control and the flexgrid. How can I get the flexgrid to show the new records?

James :-)

RE: FlexGrid not refreshing

there are two things to keep in mind when adding things "Refresh" and "Requery" to grids or recordset or forms
One or the other works with the FlexGrid's Data source
such as Data1.Requery

RE: FlexGrid not refreshing

The flexgrid control does not have a requery method! That was part of the problem. I use refresh on the active data control as that works the same as requerying the underlying recordset. I have also tried using the requeru method on the underlying recordset.

James :-)

RE: FlexGrid not refreshing

Use the refresh on the ado control and then use the rebind method of the flexgrid control


RE: FlexGrid not refreshing

You're right the flexgrid itself does not have it, but it's data source does.
Thats where you need to do it.

you mentioned your are using an "ADO Data control"
thats where the RE-xxxxx goes
I tried it out myself.
I have a data control connected to the Biblo.mdb
and it's recordsource connected to 'Authors'
I put a command button on which sends a new recordsource to the data control
here is the code
Private Sub Command1_Click()
Data1.RecordSource = "Publishers"

End Sub

Or as "calahans" mentioned Rebind which re-connects it to the updated Data source.

RE: FlexGrid not refreshing



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close