Solved

VB6 and MSHFlexGrid

Posted on 2003-12-03
4
822 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
ID: 9865474
Do you assign the data from a recordset ? Then just use the recordcount of your recordset !
0
 
LVL 8

Author Comment

by:SNilsson
ID: 9865667
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
ID: 9865701
Can you use DynaGrid.rows ? This should also give you the number of rows in the grid.
0
 
LVL 8

Author Comment

by:SNilsson
ID: 9865819
There it was :)

Glad you found it for me, thank you !
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

740 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