共用方式為


ActiveRow Property

Specifies the row that contains the active cell in a Grid control. Not available at design time; read-only at run time.

Grid.ActiveRow

Remarks

The ActiveRow property does not return the same value as RECNO( ) in an indexed table. ActiveRow returns zero if the grid doesn't have the focus or when you access a row outside the grid display.

See Also

ActivateCell Method | ActiveColumn Property | GridHitTest Method | RECNO( ) Function

Applies To: Grid Control