[Gambas-user] TableView cell editing

Charlie Ogier charlie at cogier.com
Wed Nov 4 15:59:24 CET 2020


Hi K., try this: -

******************************************************
TableView1 As TableView
sText As String[] = Split("anyone advise of example showing in cell 
editing of TableView cells", " ")

Public Sub Form_Open()

   With Me
     .H = 300
     .W = 300
     .Arrangement = Arrange.Vertical
     .Padding = 5
   End With

   With TableView1 = New TableView(Me) As "TableView1"
     .Columns.Count = 1
     .Rows.Count = sText.Count
     .Expand = True
   End With

End

Public Sub TableView1_Click()

   TableView1.edit()

End

Public Sub TableView1_Data(Row As Integer, Column As Integer)

   TableView1.Data.Text = sText[Row]

End

Public Sub TableView1_Save(Row As Integer, Column As Integer, Value As 
String)

   TableView1[Row, Column].Text = Value

End
******************************************************

Charlie

On 04/11/2020 14:30, KKing wrote:
> anyone advise of example showing in cell editing of TableView cells



More information about the User mailing list