Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing a Grid without switching pages…
Message
 
 
À
10/09/1998 16:53:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00134367
Message ID:
00135444
Vues:
8
i have had alot of trouble with my grids. have spent more time on them than the entire project. have spent some time on when the grid is the entire table, but have spent most my time on when the grid shows only a subset of records. have found parent/child grid relationships (grid data properties of linkmaster, relationship expression) a nightmare. many at ut (universal thread) say to use a parameterized view instread of the parent/child relationship for displaying only a subset of records. but even grids that show the entire table can be problematic (at least for me, and judging by the number of ut questions on grids, for everyone else also).

thisform.pageframe1.activepage = 2 && should transfer to page2 programmatically

what are you calling from a combobox valid? you cannot setfocus in a valid. there are threads on ut that address this. if i recall, you can set a switch in valid and then based on the switch, maybe set focus in lost focus? i do not have my notes with me now. send a message if you need any help from a person who is also stumbling through it.

brenda

>>i am having a problem right now with pageframes and grids not refreshing. have pinned my problem down to setfocus. seems that the grid will not refresh properly is it has the focus. unfortunately it is the only input field on the page. can avoid some of my problem with setting focus to the page at the beginning of activate. but during deletes and adds it gets messy. david, have you ever heard of this, do you have any idea? does your download address this?
>>
>>thanks - brenda

>now that could be useful. I have three objects on my form, including the grid, so I can redirect the focus. Having said that, the problem I'm having is calling the damn thing from a combobox valid - so the focus must surely be on that at the time. Mustn't it?!

>confess I find it staggering and somewhat depressing that achieving something as apparently basic as refreshing a grid is proving so damn difficult in this brave new world!

>I mean, call me old fashioned, but I have to ask myself the question, why, if I can manually click between the two pages and achieve the desired result, can I not simply call the code that is invoked at those times to do the damn thing programatically. Not elegant I agree but at least it would get the job done!

>As a start, can anyone tell me how to activate a different page of the pageframe programmatically? I'm sure I've seen references to that somewhere. But can I find it when I need it? Is the pope jewish?

>If I could do that with a parameter which basically says 'I don't really want to be on this page so send me back to where I started' then I'd have the problem solved and we could all get on with the rest of our lives!

>Am I coming across as a smidge frustrated? ;-)

>Thanks to all for your help so far

>egards
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform