DOCUMENT:Q191006 07-AUG-1998 [vbwin] TITLE :DOC: Flexgrid Limitation of 350,000 Total Cells PRODUCT :Microsoft Visual Basic for Windows PROD/VER: OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0 --------------------------------------------------------------------- SUMMARY ======= The Flexgrid control is limited to 350,000 total cells. This limitation differs from the limitation that is documented in the Flexgrid Help file. The Help file incorrectly states the following: "The minimum number of rows and columns is 0. The maximum number is limited by the memory available on your computer." MORE INFORMATION ================ This limitation of 350,000 cells occurs on any machine, regardless of memory available. Thus, if you have two columns, the maximum amount of rows you can have is 175,000. Similarly, if you have five columns, the maximum amount of rows you can have is 70,000. If any combination of rows and columns exceeds 350,000 total cells, you will get the following error message: "Unable to Allocate Memory for FlexGrid" Steps to Reproduce Behavior --------------------------- 1. Create a new Standard EXE project. Form1 is created by default. 2. Click Components on the Project menu, and check "Microsoft FlexGrid Control 6.0." 3. Add a FlexGrid control to Form1. 4. Set the Cols property of MSFlexGrid1 to 2 in the Properties Window. 5. Set the Rows property of MSFlexGrid1 to 175,001 in the Properties Window. (The maximum it allows in this case is 175,000.) 6. After setting the Rows property you should see the following error message: "Unable to Allocate Memory for FlexGrid" Additional query words: kbVBp kbdsd kbDSupport kbCtrl kbVBp kbVBp500 kbVBp600 ====================================================================== Platform : WINDOWS Issue type : kbbug ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.