>>I have a grid that is "built" by an update method called by a timer. This grid uses a custom textbox in all the columns so that I have several features one of them being a right click menu. I seem to be having an issue of a user right clicking in the grid WHILE the update method is running. I have tried several things, with no sucess. How would you prevent a native event from firing for the grid BEFORE any code in that event is run, so that the update method doesn't have a problem with updating the textbox of the grid control?
>>
>>Any suggestions?
>
>To prevent an event you need to use NODEFAULT. So, if you can identify condition, just add NODEFAULT for this condition in that method.
Thanks Naomi,
The problem is the fact that the rightclick event fires and the code is running means that the update method will fail becuase it can NOT remove the text field object of the grid. I hope that helps to explain the problem. What I need is to PREVENT any event\methods of the grid object from being able to "fire" or be called while the update code for the grid is running. I have tried setting the enabled property of the grid to false, but the rightclick method of the grid still fired and caused an issue.
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