Solved

VB6 and MSHFlexGrid

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

929 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