Solved

VB6 and MSHFlexGrid

Posted on 2003-12-03
4
832 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

Independent Software Vendors: 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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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…
Six Sigma Control Plans

695 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