[Gambas-user] How to listen Select event on a DataView?
T Lee Davidson
t.lee.davidson at gmail.com
Fri Apr 24 17:58:33 CEST 2020
On 4/24/20 1:18 AM, Yeshua Rodas wrote:
> Hello folks.
>
> The TableView has a Select event that is raised when the selection changes.
>
> The DataView implements a TableView, however do not implement the Select Event.
>
> How can I add a method to be called when the Select Event of the TableView of the DataView rises?
>
> Thank you.
>
> --
> E. Yeshua Rodas
> DTI - UPNFM
' Gambas class file
Public hObserver As Observer
Public Sub Form_Open()
hObserver = New Observer(DataView1.View) As "hView"
End
Public Sub hView_Select()
Print "Selection changed."
End
--
Lee
More information about the User
mailing list