PDA

Click to See Complete Forum and Search --> : Rowloaded anyone?


MattG
Oct 30th, 2000, 12:32 PM
Has anyone used the "Rowloaded" event for DBGrid in VB5-6?
I need to use it to fill a custom column, but cannot find it in DBGrid's event list nor anywhere!!

Has someone used this that can tell me in a couple of words how to?

Nemo
Nov 1st, 2000, 01:48 AM
Hi MattG,
I've looked in my books and this is what i've found:

RowLoaded Event is trigerred every time the DBGrid load a row from the database provided through the data control.
RowLoaded allows the application to respond to the loading of new data.

ARGUMENTS:
Name - Name property of DBGrid
Index - Index property of DBGrid (if DBGrid is part of a control array)
Bookmark - A string that provides the bookmark for the newly loaded row (record)

SYNTAX:
Private Sub DBGrid1_RowLoaded (Bookmark As String)

'this routine keeps a count of the number of rows
'loaded and updates a status panel on the form

Form1.pnlRowCount = Form1.pnlRowCount +

NOTE:
This event can be trapped to allow the application to provide calculated values for an unbound field or to otherwise respond to the adding of a new row.

I hope this answers your question



[Edited by Nemo on 11-01-2000 at 03:07 AM]