ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.ColContaining Method

Returns the column index for the column containing the specified X coordinate.

[Visual Basic]

Public Function ColContaining( _

ByVal x As Integer _

) As Integer

[C#]

public int ColContaining(

int x

);

[Delphi]

public function ColContaining(

x: Int32

): Int32;

Parameters

x

The horizontal coordinate (X value) in pixels.

Return Value

The index of the column in the Split.DisplayColumns collection beneath the specified X coordinate.

Remarks

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.

See Also

C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.