PRB: Click Event for DBGrid Returns Previous Row Values (191803)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q191803 SYMPTOMS
When clicking on a row of the DBGrid, the Click event is fired prior to the
RowColChange event. If you attempt to print out the values of the columns
collection in the Click event, the values from the previous row are
printed.
RESOLUTION
To display data associated with the row you are navigating to, use either
the Reposition event of the Data control (if the DBGrid is bound to the
Data control) or the RowColChange event of the DBGrid control, or use the
timer control in the Click event of the DBGrid.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbprb KB191803 |
---|
|