ListBox vs. ListView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    ListBox vs. ListView

    Is there a way to get a ListView control to fire its
    SelectedIndexCh anged event like the ListBox control? When the user
    selects multiple items at once, the ListView fires the event as each
    item gets selected. The ListBox waits to fire the event until all
    selections are complete.

    Thanks,
    Mike
  • Jeff Johnson

    #2
    Re: ListBox vs. ListView

    "Mike" <MLM450@hotmail .comwrote in message
    news:26ddc286-ef50-4ddf-a65e-f1fe2a828e4f@r3 7g2000prr.googl egroups.com...
    Is there a way to get a ListView control to fire its
    SelectedIndexCh anged event like the ListBox control? When the user
    selects multiple items at once, the ListView fires the event as each
    item gets selected. The ListBox waits to fire the event until all
    selections are complete.
    It does? How do it KNOW that the selections are complete?

    (I, for one, welcome our new telepathic list box overlords....)


    Comment

    • Mike

      #3
      Re: ListBox vs. ListView

      On Nov 18, 4:32 pm, "Jeff Johnson" <i....@enough.s pamwrote:
      "Mike" <MLM...@hotmail .comwrote in message
      >
      news:26ddc286-ef50-4ddf-a65e-f1fe2a828e4f@r3 7g2000prr.googl egroups.com...
      >
      Is there a way to get a ListView control to fire its
      SelectedIndexCh anged event like the ListBox control? When the user
      selects multiple items at once, the ListView fires the event as each
      item gets selected. The ListBox waits to fire the event until all
      selections are complete.
      >
      It does? How do it KNOW that the selections are complete?
      >
      (I, for one, welcome our new telepathic list box overlords....)
      How could it not know? If I click on the first of 100 items and then
      shift-click the last item, I think the control needs to know it is
      selecting all 100 items or else how could it do it?

      Comment

      • Jeff Johnson

        #4
        Re: ListBox vs. ListView

        "Mike" <MLM450@hotmail .comwrote in message
        news:c1b951c7-c1f7-4ea7-988e-8dde7ab588b7@a3 g2000prm.google groups.com...
        >>Is there a way to get a ListView control to fire its
        >>SelectedIndex Changed event like the ListBox control? When the user
        >>selects multiple items at once, the ListView fires the event as each
        >>item gets selected. The ListBox waits to fire the event until all
        >>selections are complete.
        >
        >It does? How do it KNOW that the selections are complete?
        >
        >(I, for one, welcome our new telepathic list box overlords....)
        How could it not know? If I click on the first of 100 items and then
        shift-click the last item, I think the control needs to know it is
        selecting all 100 items or else how could it do it?
        Well, you didn't specify what type of multi-selection you were using.
        There's also the type where you can Ctrl+click items, and do it as many
        times as you want.

        And you're saying that the first click (on the "anchor" item) doesn't fire
        SelectedIndexCh anged? I'm having difficulty believing that.


        Comment

        • Mike

          #5
          Re: ListBox vs. ListView

          On Nov 18, 4:59 pm, "Jeff Johnson" <i....@enough.s pamwrote:
          "Mike" <MLM...@hotmail .comwrote in message
          >
          news:c1b951c7-c1f7-4ea7-988e-8dde7ab588b7@a3 g2000prm.google groups.com...
          >
          >Is there a way to get a ListView control to fire its
          >SelectedIndexC hanged event like the ListBox control? When the user
          >selects multiple items at once, the ListView fires the event as each
          >item gets selected. The ListBox waits to fire the event until all
          >selections are complete.
          >
          It does? How do it KNOW that the selections are complete?
          >
          (I, for one, welcome our new telepathic list box overlords....)
          How could it not know? If I click on the first of 100 items and then
          shift-click the last item, I think the control needs to know it is
          selecting all 100 items or else how could it do it?
          >
          Well, you didn't specify what type of multi-selection you were using.
          There's also the type where you can Ctrl+click items, and do it as many
          times as you want.
          >
          And you're saying that the first click (on the "anchor" item) doesn't fire
          SelectedIndexCh anged? I'm having difficulty believing that.
          First, I said this is when they select multiple "at once". Sorry that
          wasn't clear enough for you, but the shift-click is the only way I'm
          aware of to do that. With ctrl+click, you pick items one at a time,
          not all at once.

          Second, I never said that the first click doesn't fire the event. I am
          only talking about the shift-click situation. Again, that single click
          is not selecting multiple items at one time.

          Comment

          • Jeff Johnson

            #6
            Re: ListBox vs. ListView

            "Mike" <MLM450@hotmail .comwrote in message
            news:3715e254-412d-49ad-a2d9-bfbfb15e9f1c@k1 g2000prb.google groups.com...
            First, I said this is when they select multiple "at once". Sorry that
            wasn't clear enough for you, but the shift-click is the only way I'm
            aware of to do that. With ctrl+click, you pick items one at a time,
            not all at once.
            Welcome to the ambiguity of the English language. To you, "at once" meant in
            a single action. To me, it meant "without doing anything else in the
            application in-between, like clicking on a button." Saying "Shift+clic k," as
            you did in your first reply, makes it perfectly clear, though, and now we're
            on the same page, although ultimately I don't think you're going to get the
            answer you want.


            Comment

            • Mike

              #7
              Re: ListBox vs. ListView

              On Nov 18, 5:19 pm, "Jeff Johnson" <i....@enough.s pamwrote:
              "Mike" <MLM...@hotmail .comwrote in message
              >
              news:3715e254-412d-49ad-a2d9-bfbfb15e9f1c@k1 g2000prb.google groups.com...
              >
              First, I said this is when they select multiple "at once". Sorry that
              wasn't clear enough for you, but the shift-click is the only way I'm
              aware of to do that. With ctrl+click, you pick items one at a time,
              not all at once.
              >
              Welcome to the ambiguity of the English language. To you, "at once" meantin
              a single action. To me, it meant "without doing anything else in the
              application in-between, like clicking on a button." Saying "Shift+click,"a s
              you did in your first reply, makes it perfectly clear, though, and now we're
              on the same page, although ultimately I don't think you're going to get the
              answer you want.
              Yeah, I looked around quite a bit for this already and came up empty.
              Just thought I'd post the question as a last resort in case anybody
              had an idea.

              Comment

              Working...