Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Listview behavior, normal? ...or not....

$
0
0

Greetings,

I have a ListView that actually has 10 columns, however I format the display so that 7 of the columns have 0 width.  That is, this was an old Visual FoxPro trick where you could carry data without having to show it because the width of a given column was essentially nothing.  The data was still there and fully accessible, and I thought you could do this in VB.NET with VS2010, but maybe I am wrong.

When I use "LstView.Items(5).SubItems..." 0,1 or 2 work fine.  But if I say "LstView.Items(5). Subitems(3)..." 4,5,6,7 etc. I get an invalid index as though those columns are not there - yet I know they are cause I checked the SQL Stored Proc that feeds the Listview.

So is the problem that I have set these other columns to Zero width, that this makes it as though they are not even there???

Thanks for any help you can offer.  This is a real pain in the neck.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>