Home > Back-end >  Cxgrid how to judge the mouse point to the data line at the bottom of the blank area
Cxgrid how to judge the mouse point to the data line at the bottom of the blank area

Time:09-15

Cxgrid last line below is blank,
How to judge the mouse point to the data line at the bottom of the blank space?

CodePudding user response:

Var
AHitTest: TcxCustomGridHitTest;
The begin
AHitTest:=cxGrid1DBTableView1 GetHitTest (Mouse. CursorPos);
If AHitTest is TcxGridViewNoneHitTest then begin

ShowMessage (' ');
The end;

The end;

This, similar to this method, determine the change

CodePudding user response:

Hello, TcxGridViewNoneHitTest is what meaning, how a piece of code like this point would perform

CodePudding user response:

Used CX, if DBGRIDEH, if the judge a non-empty value is empty, we can determine whether is empty? A shot in the dark, you give it a try,

CodePudding user response:

Still not solve, please advise

CodePudding user response:

Don't know cxgrid, if it is a TDBgrid, or from TCustomGrid derived, directly obtained a MouseCoord coordinates corresponding cell, if there is no cell coordinates, is (1, 1)
  • Related