Table select doesn't react

Discussion in 'Questions (Windows Mobile)' started by tvrman, Sep 18, 2007.

  1. tvrman

    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
     
  2. RandomCoder

    RandomCoder Well-Known Member Licensed 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.
     
  3. tvrman

    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
     

    Attached Files:

  4. tvrman

    tvrman Member Licensed User

    screen shot..
     

    Attached Files:

  5. RandomCoder

    RandomCoder Well-Known Member Licensed 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
     

    Attached Files:

  6. tvrman

    tvrman Member Licensed User

    :sign0142:

    You are my man!, thanks a lot.

    This solution works great!

    :sign0188:
     
Loading...