Table select doesn't react

tvrman

Member
Licensed User
Hi

I have created a table which contains the files of my directory,
after loading the files in the table, you are able to select one of the files in the table,
when i click on one file in the table, the fist thing what happends is that
you are able to edit the selected cell? after serveral clicks in the row of the table finnaly the on select event will called.

Why does this happends?

Does there is an solution for this?

cheers
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
I've used the Table control several times and not experienced any problems with the SelectionChanged event firing.
You should note however that it only fires when a different cell is clicked. Clicking on the same cell multiple times should not cause the event to fire.

Is it possible to post some of your code, so that we can better help?

Regards,
RandomCoder.
 

tvrman

Member
Licensed User
Hi RandomCoder,

Herebey the little sourch which i used, when you enter the search criteria
in the textbox, the filter will used on the table, if then the folder has been
set in the table, and you choose then, most of the time the cell will be blue (focus are set on the cell data), and the cursor is blanking in the cell,
are serveral clicks finnaly the event will raised.

thanks
 

Attachments

  • Test with table.sbp
    1.9 KB · Views: 202

tvrman

Member
Licensed User
screen shot..
 

Attachments

  • table.JPG
    table.JPG
    11.4 KB · Views: 201

RandomCoder

Well-Known Member
Licensed User
Longtime User
The problem was that no Cell was selected in the first place and so the SelectionChanged event wasn't being triggered.
Please see the attached code in which I have added another column (hidden) and selected cell 0. Now when a cell is clicked the SelectionChaned event is triggered correctly.

Regards,
RandomCoder
 

Attachments

  • Test with table - Modified.sbp
    2 KB · Views: 218

tvrman

Member
Licensed User
:sign0142:

You are my man!, thanks a lot.

This solution works great!

:sign0188:
 
Top