Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right click even in grid disappear

Status
Not open for further replies.

dickylam

IS-IT--Management
Jun 24, 2001
86
Hello,

I am feeling strange why the rightclick event function disappear after the grid's recordsource is triggered.

Triggered means I have 2 forms, one form only show the grid and another form add/edit records, after closing the second form, I put a grid.refresh call to first form. Although the data is updated, but the function of "Rightclick" is lost ?

Anybody know how it behaves ?

Thanks
 
dickylam

Try putting the code in the right-click event of each textboxes in the columns of the grid. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike,

As you said, I have to put, for example create a new method and let all column's rightclick event as well as text box to call such method. But..even I did that, the program code is disappearing in the text box even only 1 line of program code I put.

Any idea,

please
 
dickylam

As you said, I have to put, for example create a new method and let all column's rightclick event as well as text box to call such method. But..even I did that, the program code is disappearing in the text box even only 1 line of program code I put.

If you do a grid recontrustion (meaning you are resending an SQL statement to reset your recordsource of the grid), it also rebuilds you grid and as a result loosing your code.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top