Is WinForms ListView in VirtualMode limited to 100,000,000 rows?

Posted by damageboy on Stack Overflow See other posts from Stack Overflow or by damageboy
Published on 2010-03-16T14:06:18Z Indexed on 2010/03/17 12:41 UTC
Read the original article Hit count: 197

Filed under:
|
|
|

I have some grid scenario with > 500,000,000 rows I would like to display in ListView.

If I artificially limit my ListView to display 100,000,000:

 _listView.VirtualListSize = _data.Count;
 if (_listView.VirtualListSize > 100000000)
   _listView.VirtualListSize = 100000000;

Everything works fine (In VirtualMode naturally). When I change my code to:

 _listView.VirtualListSize = _data.Count;
 if (_listView.VirtualListSize > 100000001)
   _listView.VirtualListSize = 100000001;

The ListView display an empty grid... Is this a Microsoft Bug? Where is this coming from? Is this a Win32 ListView limitation? Most importantly, why is this not documented?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about listview