Table select doesn't react

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

  1. tvrman

    tvrman Member Licensed User


    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?

  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?

  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.


    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.


    Attached Files:

  6. tvrman

    tvrman Member Licensed User


    You are my man!, thanks a lot.

    This solution works great!

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice