[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -1 value from "GridView1.Column" and "GridView1.Row" with the middle mouse button


Le 03/09/2025 à 09:57, Benoît Minisini a écrit :
Le 03/09/2025 à 02:30, vuott@xxxxxxxxxxxx a écrit :
Hello,
if I click with the "middle" mouse button inside any "cell" of a GridView, I get  -1 value from "GridView1.Column" and -1 value from "GridView1.Row".


Yes, only the left and right buttons move the GridView cell cursor. Other buttons are silently ignored...


...but you can use the 'RowAt()' and 'ColumnAt()' methods in your mouse event handler to find which cell you clicked with the middle mouse button. And then you can use the 'MoveTo()' method, or do whatever you want.

Regards,

--
Benoît Minisini.