CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Location
    USA
    Posts
    3

    msflexgrid/mshflexgrid

    Hi,
    Does anybody have any idea about the maximum of rows and/or cols one can have in msflexgrid/mshflexgrid ?.I am trying to open a msflexgrid/mshflexgrid control based on the number of records in two different tables,as rows and cols respectively.The error I get is 'subscript out of range' or 'unable to allocate memory'(My rows are about 25000).Does anybody have a better suggestion?.Any help would be highly appreciated.
    Thanks.


  2. #2
    Join Date
    Dec 1999
    Location
    Slovakia
    Posts
    26

    Re: msflexgrid/mshflexgrid

    It depends on your computer configuration but number of cols are always limited. But you can solve your problem with huge amount of rows. You need to open recordset as ServerSide cursor then e.g. SQL Server will send you only thouse rows which you are able to show in grid in specified position which means 20 rows or so.
    This is only way how to open large recordsets and doesn't matter how many MB of ram your computer actually have.


    [ufo]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured