Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and Double-click.
Message
De
06/08/2001 04:37:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00536813
Message ID:
00540035
Vues:
31
Thanks Vlad,

It worked for one of the grids, however other grids the problem remains. If I add code to Click event, it works. But if I put in DblClick event it does not fires.

Any other idea,

Regards
Shaishav

>Hi!
>
>and its dynamically filled
>
>What you meant by that? If you meant refreshing of second grid when record moved in first grid by changing the SQL statement for second grid, you probably experiense a grid reconstruction that remove all code from second grid columns. See FAQ #8019.
>
>HTH.
>
>>Hi Nancy,
>>
>>First, thanks for your reply.
>>
>>The code is in the dblclick method of TextBox. And still it wouldnot fire.
>>
>>I want to display two Grids with differnt data. However the basic funtion is very similar. In both the Grids,
>>
>>RECORDSOURCETYPE = 4 (SQL)
>>
>>and its dynamically filled. Both the grids are identical in a sense they perform the same task while double clicked. It works in first grid but not in second.
>>
>>Both the grids are on a container.
>>Pls let me know if you have any solution to this.
>>
>>Regards
>>Shaishav Merchant
>>
>>>>Dear All UT Memebers,
>>>>
>>>>I have included two Grids on a container. Both of them are being updated during runtime. The RecordSourceType of both the grids is 4 (SQL).
>>>>
>>>>When double-click on Column1.text1 it should launch a form. Both the Grids are almost identical, just two different procedure to fill them, and Grid 1 is 3 column and Grid 2 is 2 columns.
>>>>
>>>>Double Click function works properly for Grid1 but it does not respond for Grid2. If I call the Grid2.column1.text1.dblclick event, it works. But if I double click it does not work.
>>>
>>>If I understand you correctly, this is how grids work. The textbox's events will fire and not the grids, unless the event occurs on a blank area of the grid.
>>>
>>>I'm not sure why the two grids are different, but if you want to be able to doubleclick on a textbox (or other object) in a grid, then you put the code in that object's doubleclick. Not the Grid.
Regards
Shaishav
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform