[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
[Thread Prev] | [Thread Next]
- Subject: Re: -1 value from "GridView1.Column" and "GridView1.Row" with the middle mouse button
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Tue, 2 Sep 2025 21:30:43 -0400
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 9/2/25 8:30 PM, vuott@xxxxxxxxxxxx wrote:
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".Example: Public Sub Form_Open() With GridView1 .Columns.Count = 5 .Rows.Count = 5 End With End Public Sub GridView1_MouseUp() Print GridView1.Column, GridView1.Row EndFurthermore, if I click with the middle mouse button after clicking with the right or left button, I get the "last" value returned by the right or left click....strange. Regards
I thought perhaps the event to use to get correct Row and Column values might be GridView1_MouseWheel. But, that event doesn't get triggered.
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Re: -1 value from "GridView1.Column" and "GridView1.Row" with the middle mouse button | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
-1 value from "GridView1.Column" and "GridView1.Row" with the middle mouse button | vuott@xxxxxxxxxxxx |