Solved

How to display the search results into a flexigrid by pagesize using ADO(Visual Basic).

Posted on 2001-08-01
4
239 Views
Last Modified: 2010-05-02
I need to display the search results into flexigrid by pagesize using ADO.  I understand that absolutepage may help but i have problems with the recordset. For example, the total search results is 15 records and I have set the pagesize to 5. So the pagecount is 3. However, the recordset is always showing 15 records. Therefore the flexigrid will always show 15 records instead of first 5 records.  Please let me know how should I control the recordset.

Can i have an example of source code for it.
It's urgent and thanks.
0
Comment
Question by:choong
4 Comments
 
LVL 3

Expert Comment

by:Bahnass
ID: 6339511
Listening
Thanx
0
 

Accepted Solution

by:
dnechodom earned 150 total points
ID: 6340632
If all you want to see are the first five records, set the .MaxRecords property of the ADO recordset to 5. If, on the other hand, you wish to page through the complete recordset 5 records at a time, you'll have to store the recordset in an array & populate the grid programmatically.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7198373
Hi choong,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept dnechodom's comment(s) as an answer.

choong, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7213206
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question