Solved

VB6 and MSHFlexGrid

Posted on 2003-12-03
4
819 Views
Last Modified: 2012-06-27
In MSHFlexGrid there is no rowcount, how can I get the rowcount ?
0
Comment
Question by:SNilsson
  • 2
  • 2
4 Comments
 
LVL 53

Expert Comment

by:Dhaest
Comment Utility
Do you assign the data from a recordset ? Then just use the recordcount of your recordset !
0
 
LVL 8

Author Comment

by:SNilsson
Comment Utility
Yes I know, but I want to do this using the control.

I fill the control using the execute of the connection object only versus sp's on the server:
__________
Set DynaGrid.DataSource = cn.Execute(sQuery)
__________

This is a fast and simple method to fill the grid, and I dont want any recordset involved at this point.

I just need a neet function to count the rows in the grid.
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 200 total points
Comment Utility
Can you use DynaGrid.rows ? This should also give you the number of rows in the grid.
0
 
LVL 8

Author Comment

by:SNilsson
Comment Utility
There it was :)

Glad you found it for me, thank you !
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
withoutTen challenge 14 88
Excel object stays open 19 65
strCopies  challenge 17 73
mapBully challenge 6 88
Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now