Results 1 to 17 of 17

Thread: listview

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    30

    listview

    hei guys,
    for the listview control, the itemclick event is activated only when the first colum item is clicked. How do I activate the event, if the third column item is clicked?

    Thanks

  2. #2
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    put a (3) after the it

  3. #3
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    after the listiew1.itemclick....like it would be listiew1.itemclick(3) insted of listiew1.itemclick

    i think

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    30
    thanks for the reply.

    the problem that i faced with listview is
    the event is activated when i click the first colum of the item.
    I want it to be activated when i click on the third column of the item.

    the coding that u suggest is to call the item_click event.

  5. #5
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    i thought that is what you wanted...you will have to explane it to me a little better....sometimes it tae me a little while to understand things

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    30
    like shown in the picture.

    when i click on the student name, i able to change the checkbox on the third column,
    what i want to do is to click on the checkbox(is a icon picture) on the third and change the icon picture accordingly.


    Thanks alot

  7. #7
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    ok ur saying when u clck the students name (like John White) it will check the chech box?

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    30
    yes, cos the checkbox is a icon picture.

  9. #9
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    My Opinion:

    It is impossible to select the column other than first one. You can make the listview select the whole row when any of the item in any of the columns is clicked. To do that, you need a listview version 6.0, then you put the following code in:

    VB Code:
    1. ListView1.FullRowSelect = True

    You won't find this property if you have an older version.
    Baaaaaaaaah

  10. #10
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Originally posted by Motoxpro
    ok ur saying when u clck the students name (like John White) it will check the chech box?
    He means that when you click on the checkbox, something happens. You can't have that kind of action a listview.
    Baaaaaaaaah

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    30
    wah simple and great solutions.

    Thanks a lot for all u ....

  12. #12
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    your welcome

  13. #13
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Originally posted by Motoxpro
    your welcome
    Baaaaaaaaah

  14. #14
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    hehe i know i didnt doo anything

  15. #15
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Originally posted by Motoxpro
    hehe i know i didnt doo anything
    I did not mean that
    Baaaaaaaaah

  16. #16
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    what did u mean?

  17. #17
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    You said welcome

    Common smilie

    I forgot to say welcome


    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width