• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 841
  • Last Modified:

VB6 and MSHFlexGrid

In MSHFlexGrid there is no rowcount, how can I get the rowcount ?
0
SNilsson
Asked:
SNilsson
  • 2
  • 2
1 Solution
 
DhaestCommented:
Do you assign the data from a recordset ? Then just use the recordcount of your recordset !
0
 
SNilssonAuthor Commented:
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
 
DhaestCommented:
Can you use DynaGrid.rows ? This should also give you the number of rows in the grid.
0
 
SNilssonAuthor Commented:
There it was :)

Glad you found it for me, thank you !
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now