Multiselect with Tablecontrol

Discussion in 'Questions (Windows Mobile)' started by mcflaytasche, Aug 21, 2007.

  1. mcflaytasche

    mcflaytasche Member Licensed User

    Hello,
    is it posible to make multiselect in tablecontrol?
    Or is there a other control where I can do this?

    Greet
    Stefan
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The Table control doesn't support multiple selection.
    Maybe you can use the TreeView control (add the library). With the TreeView control you can add a checkbox near each node.
     
  3. mcflaytasche

    mcflaytasche Member Licensed User

    Thank you Erel,
    I have use treeview and it works fine.
    But now the next question:
    When I use the Checkbox funktion for the nodes is there a way to count how many are checked?
    Greets
    Stefan
     
  4. specci48

    specci48 Well-Known Member Licensed User

  5. mcflaytasche

    mcflaytasche Member Licensed User

    Hello specci48,
    thanks for the link.
    It works when I select a node
    but how can I make it when I check a checkbox?
     
  6. specci48

    specci48 Well-Known Member Licensed User

    Sorry but I don't understand your question.

    If you use the treeview with additional checkboxes, every node has a checkbox. And the code sample in the other thread shows how to find out, which checkboxes (of the complete treeview) have been checked.


    specci48
     
  7. mcflaytasche

    mcflaytasche Member Licensed User

    Hello specci48,
    I have understrand how that code-sample work.
    But I only get a change when I select a node directly and not when I change a Checkbox.
     
  8. specci48

    specci48 Well-Known Member Licensed User

    ... I still didn't get it ...:sign0013:
    Do you want something like a checkboxCheckedEvent?
     
  9. mcflaytasche

    mcflaytasche Member Licensed User

    Something like treeview_change or treeview_click.
    What I want to do:
    Everey time a Checkbox will be checked or unchecked I want to get a number
    which shows me the number of the checked Checkboxes.
    My program I'm working on will write a textfile in which I can place maximally 50 entries and so I need a querie about the checked Checkboxes.
    Please excuse me about my english I'm from Germany and not experienced in writing english.:signOops:
     
  10. specci48

    specci48 Well-Known Member Licensed User

    Since the AfterSelect event is not fired on checking a checkbox (even checking a checkbox on a different node) it is not possible to do what you want.

    I think the only way is to count the existing nodes to prevent that there are more than 50 available checkboxes.


    specci48
     
Loading...