>>What is the cleanest/best way to make sure that the contents of a textbox in a column of a grid get updated when the user clicks on the menu or toolbar?
>>
>>Thanks in advance.
>>
>>Sarosh
>
>Sarosh,
>
>Call its SetFocus method.
Thanks for your prompt reply.
I tried it out but it didn't seem to work.
in the writebuffer method
*-- some code here
if upper(thisform.activecontrol.baseclass) = "GRID"
ogrid=thisform.ActiveControl
ogrid.setfocus()
*ogrid.activatecell(ogrid.activerow,ogrid.activecolumn)
*-- tried both the above statements but no luck
else
*-- some code here
endif
*-- some code here
Sarosh
Précédent
Suivant
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