M matek Member Licensed User Feb 27, 2017 #1 hello friends I have a question, how add checkbox to tableview?
EnriqueGonzalez Well-Known Member Licensed User Longtime User Feb 28, 2017 #2 Easy. If your tw has 2 columns. B4X: Dim row(2) as object Row(0) = "cell" Dim cb as checkbox Cb.initialize("") Cb.text = "cb inside a two" Row(1) = cb Tableview.items.add(cb) Well something like that Upvote 0
Easy. If your tw has 2 columns. B4X: Dim row(2) as object Row(0) = "cell" Dim cb as checkbox Cb.initialize("") Cb.text = "cb inside a two" Row(1) = cb Tableview.items.add(cb) Well something like that
EnriqueGonzalez Well-Known Member Licensed User Longtime User Feb 28, 2017 #4 for that you would do this: B4X: dim row() as object = tw.items.get(tw.selectedrow) dim cb as checkbox = row(1) log(cb.checked) Upvote 0
for that you would do this: B4X: dim row() as object = tw.items.get(tw.selectedrow) dim cb as checkbox = row(1) log(cb.checked)
Czampo Member Licensed User Jul 17, 2018 #5 Enrique Gonzalez R said: Easy. If your tw has 2 columns. B4X: Dim row(2) as object Row(0) = "cell" Dim cb as checkbox Cb.initialize("") Cb.text = "cb inside a two" Row(1) = cb Tableview.items.add(cb) Well something like that Click to expand... but : B4X: Tableview.items.add(cb) or B4X: Tableview.items.add(row) ? Upvote 0
Enrique Gonzalez R said: Easy. If your tw has 2 columns. B4X: Dim row(2) as object Row(0) = "cell" Dim cb as checkbox Cb.initialize("") Cb.text = "cb inside a two" Row(1) = cb Tableview.items.add(cb) Well something like that Click to expand... but : B4X: Tableview.items.add(cb) or B4X: Tableview.items.add(row) ?
EnriqueGonzalez Well-Known Member Licensed User Longtime User Jul 17, 2018 #6 you are right is the second one. Upvote 0