Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid.column.header.click()
Message
De
17/09/2001 11:35:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00556026
Message ID:
00557311
Vues:
17
Hi Vlad,

Thanks for your debugging tips. I was able to figure out the problem. When I was recreating a cursor used to help make the recordsource of the grid the destroy event was firing. So what I've done is check to see if the cursor is used and if it is, instead closing it I zap it, if its not used I create it.

Thanks!

Chris

>Hi!
>
>Its even more strange. I did never seen that a single Click cause grid destroy event firing. It looks like you have a lot of code in grid or classes for controls in grid, and that code cause a lot of things done conflicting with what you;re trying to do on the form. Try to debug the program step by step in debugger by putting the "SET STEP ON" command in the header.click event and see what program do exactly. Maybe there is an error appear and error message is not displayed because errors disabled or something like that. Please assure you did not missed something.
>
>>Hi Vlad,
>>
>>Thanks for your reply. I read your article and found it very interesting. I am not sure if my grid gets reconstructed. This is basically what I am doing. The recordsourcetype is an sql statement. When a user clicks a header i want to sort the recordsource by that record. (so I set the recordsource to "", and then set the recordsource to "select fields from table order by [header that was clicked on] into cursor noDisp" The first time a header is clicked, but the second time it doesn't. I noticed that the grid.destroy() is firing when you click on a header but the grid.init() event is not.
>>
>>Thank you,
>>Chris
>>
>>>Hi!
>>>
>>>I did not ever seen such behaviour of the grid header. Check if this is not a grid reconstruction behaviour (See VFP Grida article in UT Magazine, August issue). Check also that header of that column really contain the code. To check if Click event firing, just run the events tracking in debugger and see what event firing in the process and check if there is a header Click.
>>>
>>>>Hi,
>>>>
>>>>I am using VFP 5. I have a grid, I've set it up so that you can change the sort order of the grid by clicking on the column headers. It works the first time you do it. But if you try clicking on another column header after, the click even doesn't even fire. Anyone have any ideas? I tried looking for vfp 5 service packs on the ms site but had no luck.
>>>>
>>>>Thanks,
>>>>Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform