Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridHitTest.HitTestCode Method

Returns the hit code of the inspected grid element.

#Declaration

Delphi
class function HitTestCode: Integer;

#Returns

Type
Integer

#Remarks

Call the HitTestCode function to identify the visual element located at the inspected point. If the inspected point does not belong to the TcxGrid control client area; the HitTestCode function returns htError.

Refer to the OnCustomDrawPartBackground event description for an example on how to use the HitTestCode method.

See Also