Skip to main content

TcxCustomGridHitTest.HitTestCode Method

Returns the hit code of the inspected grid element.

Declaration

class function HitTestCode: Integer;

Returns

Type
Integer

Remarks

This function returns the unique identifier (called hit code) of the grid element being inspected. The initial value returned by this function is htError which indicates that the grid element is not associated with any hit code. Each TcxCustomGridHitTest descendant provides a meaningful hit code specific to the grid element it is associated with.

Refer to the OnCustomDrawPartBackground event description for an example on how to use the HitTestCode method. To learn about HitTest classes and hit codes available within various grid Views, refer to the Understanding HitTests topic.

See Also