RowTop Method

       

Returns a value containing the Y coordinate of the top of a specified row of a DataGrid control. Doesn't support named arguments.

Syntax

object.RowTop value

The RowTop method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value Required. An integer that specifies a row in the range of 0 to the setting of the VisibleRows property -1.

Remarks

The RowTop method returns a value that corresponds to the Y coordinate of the top of the row specified by value. The return value is based on the ScaleMode property of the container.

You can use the RowTop method with the RowHeight, Left, and Width properties of the Column object to determine the exact location and dimension of a chosen cell in the DataGrid control.