[Gambas-user] TableView control, howto edit cells?

Isaac Buch admin at ...2122...
Fri Apr 3 15:40:51 CEST 2009


Hello list,

I am a newbee in gambas trying to use TableView control to allow user to 
modify data on cells by clicking on it. 

I tried to move to a row&column and modify the tableview.current.text, (that 
works fine in a button click event) but not in the tableview_save event (Null 
object error).

Source Code:

PUBLIC SUB Button1_Click()
  TableView1.Columns.count = 4
  TableView1.Rows.count = 4
  TableView1.MoveTo(1, 1)
  TableView1.Current.Text = "TEST"
END

PUBLIC SUB TableView1_Click()
 TableView1.Edit
END

PUBLIC SUB TableView1_Save(Row AS Integer, Column AS Integer, Value AS String)
  TableView1.MoveTo(Row, Column)
  TableView1.Current.Text = Value		
END

Any suggestion ?

thanks you all in advance :)




More information about the User mailing list