ComponentOne True DBGrid Pro 8
RowColChange Event

 

Object Reference> True DBGrid Events> RowColChange Event

RowColChange Event

The RowColChange event occurs when the current cell changes to a different cell.

Syntax

TDBGrid_RowColChange (LastRow As Variant, ByVal LastCol As Integer)

Arguments

LastRow is a variant bookmark that identifies the former current row.

LastCol is an integer that identifies the former current column.

Remarks

This event is triggered under several circumstances:

·      When the grid is first displayed.

·      When the user moves the current cell by clicking another cell or using the navigation keys.

·      When data in the grid is changed in a way that implicitly affects the current row, such as when the current row is deleted when it is the last row in the grid.

·      When the Bookmark, Row, Col, or Split properties are changed in code to a different value.

The current cell position is provided by the Bookmark and Col properties. The previous cell position is specified by the LastRow and LastCol arguments.

If the user edits data and then moves the current cell position to a new row, the update events for the original row are completed before another cell becomes the current cell.

If a cell change also results in a change to the current split, then the SplitChange event will always precede the RowColChange event.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback