ComponentOne True DBGrid Pro 8
SplitContaining Method

 

Object Reference> True DBGrid Methods> SplitContaining Method

SplitContaining Method

The SplitContaining method returns the Index value of the split containing the specified coordinate pair.

Syntax

TDBGrid.SplitContaining(x, y)

Arguments

x and y are singles that define a coordinate pair in twips.

Return Value

An integer corresponding to the index of the split beneath the specified coordinate pair.

Remarks

This value ranges from 0 to Splits.Count - 1.

This method is useful when working with mouse and drag events when you are trying to determine where the user clicked or dropped another control in terms of a grid column.

If either argument is outside of the grid's data area, this method returns -1.

Note

You must convert the x and y arguments to twips, even if the container's ScaleMode (Visual Basic) setting specifies a different unit of measurement.

See Also

TDBGrid Control

 

 


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

Product Support Forum  |  Documentation Feedback