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

Re: TableView Save Event Issue


On Fri, 20 Jun 2025 at 03:53, Greg Raffaelle <greg.raffaelle@xxxxxxxxx>
wrote:

> I am having an issue with not receiving a TableView1_Save() event.  I have
> a TabPanel with two separate table views in the same panel.  In either
> table, if you click on a cell, edit the cell contents, and then click in
> another cell of the same table a TableView1_Save() event is sent.  However
> if you click on a cell in the first table view, edit the cell, and then
> click on a cell in the second table view, the first table view does not
> receive a TableView1_Save() event promptly.  It is not until you click back
> in a cell of the first table that it sends the TableView1_Save() event for
> the last edited cell in the first table view.  I need the edits to be saved
> in the first table when the user starts editing a cell in the second table
> and vice versa.  Any ideas or work arounds would be appreciated.
>

Maybe the LostFocus event?
something like this might work.

Public Sub TableView1_LostFocus()

  If Last.Editor Then
    Last.Save ' raise save event
    Last.Cancel  ' close the editing
End

Public Sub TableView2_LostFocus()

  If Last.Editor Then
    Last.Save
    Last.Cancel
  End

End

Respects
BruceS

Follow-Ups:
Re: TableView Save Event IssueBruce Steers <bsteers4@xxxxxxxxx>
References:
TableView Save Event IssueGreg Raffaelle <greg.raffaelle@xxxxxxxxx>