How to add checkbox or switch button column to tableview
Posted: Friday 2nd December 2022 8:19am
I have a tableview and i will add one more column to it. This column need to have checkboxes or switchbutton or something else that can represent boolean value. And when checkbox's state changed i want to make some operation. I get values from database and will write to database when its state changed. How can i add this? The code part is like this:
I use gambas 2.2 or something btw.
WITH dbResult
tb.rows.count = .count
i = 0
WHILE i < .count
tb[i, 0].Text = dbResult!name
tb[i, 1].Text = dbResult!width
tb[i, 2].Text = dbResult!height
tb[i, 3].Text = dbResult!isValid
i = i + 1
.MoveNext
WEND
END WITH
I use gambas 2.2 or something btw.