[Gambas-user] WebTable ( or GridView ) detect same cell select

T Lee Davidson t.lee.davidson at gmail.com
Fri Oct 13 23:30:38 CEST 2023


On 10/13/23 12:23, Marco Ancillotti wrote:
> Hi all,
> 
> I have a WebTable with some code on the _select event.
> 
> That event run when I >> change << the selection but I need to detect when
> someone re-click on the >> same << cell , is there a way to do that ?
> 
> I've try the same on a GridView on qt and I get the same result so I understand that
> this is by design but is there some workaround or trick to detect when Clicking on an
> already selected item ?
> 
> I try the _Click event but it's only raised when a embedded controlraises a Click event so
> don't work in my case.
> 
> Thanks in advance,
> marco.
> 
> ps:
> For who is asking , I have two WebTable on the same form and a button action change when I
> select something on a WebTable or on Another so I need to know latest selected Item between
> the Two.

Currently, about all you can do is embed a control in the cell that raises a Click event. For example, you could embed in each 
cell a WebButton with its Text property set to the data you wish to display in that cell. You could then implement a 
WebTable_Click event handler.

This work-around came up in a mailing list discussion earlier this year:
https://lists.gambas-basic.org/pipermail/user/2023-March/078722.html


-- 
Lee



More information about the User mailing list