Board index » cppbuilder » TStringgrid OnSelectCell event fired twice
TStringgrid OnSelectCell event fired twice
2005-04-19 07:44:42 PM
I have a TStringGrid (actually a TAdvStringGrid from TMS).
I have an OnSelectCell event to perform some actions when I clicks on a
new cell, different from my present selection in the grid.
I notice that this event is fired twice, even though I click just once
on the new cell.
Does anybody know how I can prevent this? One way could be to set up
some kind of a status variable, but obviously this is not the elegant
I subsequently tried using the MouseDown event and I found that it gets
fired just once. I am unable to figure out the reasons for this.
Any help is appreciated.