Solved

VB6 and MSHFlexGrid

Posted on 2003-12-03
4
831 Views
Last Modified: 2012-06-27
In MSHFlexGrid there is no rowcount, how can I get the rowcount ?
0
Comment
Question by:SNilsson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: 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

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
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 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…

734 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