Help Determining number of rows in the VB4 DBGRID control 
Author Message
 Help Determining number of rows in the VB4 DBGRID control

I am trying to determine the number of rows in the dbgrid control at
various times. The VisibleRows property on tells me the number of rows
in the display area and not the total number of rows.

there is some reference to RowBuffer and RowCount but I cannot find
any information about this

Any help would be greatlt appreciated..

Thanks ....Martin



Sun, 30 Aug 1998 03:00:00 GMT  
 Help Determining number of rows in the VB4 DBGRID control

Quote:

> I am trying to determine the number of rows in the dbgrid control at
> various times. The VisibleRows property on tells me the number of rows
> in the display area and not the total number of rows.
> there is some reference to RowBuffer and RowCount but I cannot find
> any information about this

You didn't specify bound or unbound.  In either case, you must query the underlying storage
object.  Unbound is normally an array holding the data.  If bound, one (slow) way is:

Set MyRecordset = Data1.Recordset.Clone()
MyRecordset.MoveLast
MyCount = MyRecordSet.RecordCount



Mon, 31 Aug 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help: DBGrid - how to make DBGrid.row = current row when I click the a cell

2. Help: DBGrid - how to make DBGrid.row = current row when I click the a cell

3. Help in counting rows in DBGrid control

4. How to set total number of col and row in DBGrid

5. DBGrid, setting number of rows

6. Current Row Number in dbGrid

7. DBGrid - Invalid Row Number Problem (6148)

8. Help determining column number in the Rich Textbox control

9. change row background color, VB4, using DBGrid

10. Change color of VB4 DBGrid row?

11. VB4: Selected Rows for Unbound DBGrid and more

12. VB4, Grid, DBGrid: How do I highlight an arbitrary row

 

 
Powered by phpBB® Forum Software