Results 1 to 4 of 4

Thread: a question on Listview

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17
    How do I change a listview from

    _________
    A|XXX|FFF|
    _|___|___|
    A|YYY|FFF|
    _|___|___|
    A|ZZZ|GGG|
    _|___|___|


    to

    _________
    .|XXX|...|
    .|___|...|
    A|YYY|FFF|
    .|___|___|
    .|ZZZ|GGG|
    _|___|___| where the .(dot) represents empty space.

    PS: For those who can't figure out what I have drawn, please copy and paste the figure to a notepad. Then you will have a better view of what I have drawn.

    TIA

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    I'm not sure what determines if an entry gets spaces or not, but you can loop thru the items, and use the VB6 replace function to replace your criteria with spaces....

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17
    I think I didn't make myself clear... I'll try to elaborate. (I'm not good in expressing what I want well...) but anyway...

    instead of having rows with the same attributes appearing twice, these two rows (or more) merge togther to become one single row. This single row may have any number of columns of subitems (ie. the ColumnHeaders doesn't matter here).

    What I want is to merge the rows (of the same column) so that the listview with repeated listitems will look neater.

    hopes it clearer now.

    Thanks to anyone who can offer any kind of help.

  4. #4
    New Member
    Join Date
    May 1999
    Location
    France
    Posts
    1
    Hello,

    I think it isn't possible since a listview is really a collection of individual rows, not a table with merging abilities.

    Try to imagine what it would look like if the user choose to select a row. Quite strange, huh ?
    (and anyway, you never saw that, did you ever ?)

    I'm even not sure a grid control could do that.

    The only ActiveX I know with this ability is the videosoft vsFlexGrid control... but it's not free ! (

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