Preventing tables from firing events

R

Rationem

Is there a way to prevent a table from sending events to its selection
listeners when programmically setting the row?

The problem I am facing includes two tables that have columns that
relate. When you click on a row in table 1 the corresponding row
becomes hightlighted, however, when the row is changed in the second
table its listeners attempt to respond by changing the selected row in
the first table so it corresponds to its row and it just keeps going on
and on and on.

Is there an easy way to fix this other than a variable that when
flagged prevents the listeners from working?
 
S

Stefan Schulz

Changing the state of the listener seems to me to be the way to go,
since other listeners might be interested in the event, even if it
occurs programatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,226
Latest member
KristanTal

Latest Threads

Top