Reset List view small icon to nothing

Hello,
I;ve got a list view showing data. It can be that there is no data in the table, then im showing an icon with when this is the case, but when there is data in the tables, i dont want to show the icon and want to get rid of the 'smallicon' cause it leaves a empty gap.

How can i reset the smallicon to no imagelist ??

Ive tried set listview.smallicon = nothing, but still leaves the gap

any ideaS?

thanks
LVL 8
arcrossAsked:
Who is Participating?
 
ShauliConnect With a Mentor Commented:
My suggestion to you is to have to different icons, very dissimilar, for your two options.

S
0
 
ShauliCommented:
The small icon works together with the view option. It will always leave a gap for the icon, even if you don't have any icon added to a specific row. The only time it will close this gap, is when you don't have an imagelist associated with the listview at all.

S
0
 
arcrossAuthor Commented:
Hi shauli it that what i meant, is it possible associate and disassociate the image list from the listview?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ShauliCommented:
No. As it is associated with the view as well. If you disassociate, then all icons will be removed.

S
0
 
arcrossAuthor Commented:
Thanks Shauli, Ill leave with the gap, as i dont need an icon for the second.

Thanks very much 4 your help!

Álvaro
0
 
ShauliCommented:
You are welcome :)

S
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.