Click to See Complete Forum and Search --> : a question on Listview
titanium
Mar 25th, 2000, 04:15 AM
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
Clunietp
Mar 26th, 2000, 01:37 AM
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....
titanium
Mar 26th, 2000, 08:17 PM
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.
Jocelyn
Mar 26th, 2000, 09:17 PM
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 ! :o(
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.