Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Row limit of a ListView? 1

Status
Not open for further replies.

snuv

Programmer
Oct 30, 2001
751
GB
Can anyone tell me how many rows a ListView is limted to?

Thanks
Snuv

"If it could have gone wrong earlier and it didn't, it ultimately would have been beneficial for it to have." : Murphy's Ultimate Corollary
 
The Old VB6 control will hold a huge number, the problem with it though was that the index property was an integer. So at 32767 items, it would switch to negative numbers, and above 65k it would toss an error if you tried using the index.

In any case, ask yourself, do your users really want to scroll through 20,000 items in a list box?

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
I just need a number to take back to the people who make the decisions

So its probably the limit of an integer

In any case, ask yourself, do your users really want to scroll through 20,000 items in a list box?

Nope, potentially 20,000,000 and I would prefer that they didnt have to. :)

Thanks for your time
Snuv

"If it could have gone wrong earlier and it didn't, it ultimately would have been beneficial for it to have." : Murphy's Ultimate Corollary
 
I would guess the limit would be 2147483648 (0 - 2147483647) as this is the positive range of integer and most indexed collections use integer as the indexing type.


Hope this helps.



[vampire][bat]
 
BTW the customers wants to be able to do this. but this doesn't mean that you have to do it all at once. Think about paging. The customer will think it can see all the records but in actual fact it will see only a couple hundred at a time. that way you speed up the app and you don't bog down the server.

It will take some work. Depending on the database you are using.

Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top