Shaishav-
>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.
If one grid works and the other doesn't, identify what is different about the grids.
The Doubleclick might not fire if the textbox, or column are disabled, or the When() returns .F., or the click() is really firing and intercepting the doubleclick (is the _DLBCLICK environment set to something very high?) or the GotFocus, for some reason, changes focus. Or because the container is disabled. Or because there is a shape overlaying the grid (that's a reach, I admit). Or it is firing but not executing the code you think it should, in which case you could put a breakpoint in the method and see if it really is executing.
I don't think the recordsourse would have anything to do with it, nor that it is a SQL source. Nor that it's in a container, unless the container is disabled.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement