×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

PROBLEM WITH REFRESH IN GRID

PROBLEM WITH REFRESH IN GRID

PROBLEM WITH REFRESH IN GRID

(OP)
sometime a grid dont's show correct data.

this is the case.
I have relation one to many.
and I use a boton to add a new record in the grid.
sometime when I add new record dont'n is showed in the grid
other sitation, if I change master record dont'n refresh the grid once eject THISFORM.REFRESH.

if move scroll bar in grid the record appear.

or stop the form and select with CLICK (MOUSE) the same table that is selected in datassesion screen and return to form, records appear (relation work fine)

I tried; select master table and eject GO record number to force relation, refresh the form, select child table. and dont'n refresh, this intents is running the form.

only when I stop the form a do something interative work fine.

somebody can tell me something. tanks

note: this situation occur sometime (sometime work fine other not)

RE: PROBLEM WITH REFRESH IN GRID

I used to run into the same problem, a simple work around that I did is after updating the record, I re-load the recordsouce property of the grid and then set the refresh property. It works for me.
Good luck.

Jun

RE: PROBLEM WITH REFRESH IN GRID

This probably sounds hokey, but there have been times that the only way to solve a similar problem was invoking the grid's DoScroll method, as in:

grdGridName.DoScroll(2) && simulates PgUp

Grids can be frustrating, eh?

---------------
Raza

RE: PROBLEM WITH REFRESH IN GRID

It used to happen to me often. So I'd rather to use parameterized views. And then set the grid RecordSource property to the Parametrized View.
It has never failed to me.

For example if you want to now all the clients in determinaded zone. Fill a combobox with all the posible different zones. And link the grid to a local or remote view like this.


Create View MyView As;
Select * from Order Where Zone = ?cZone

Where ?cZone is a parameter determined by the zone you selected in the combobox.


Edwin Dalorzo
edalorzo@hotmail.com

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