based on Erel's example, i added checkbox to B4Xtable column and name it 'Select' now i want to iterate thru table rows to get checked-only rows. how to do this?
B4X:
tblPhoneContacts.Clear
CheckColumn = tblPhoneContacts.AddColumn("Select", tblPhoneContacts.COLUMN_TYPE_TEXT)
CheckColumn.Width = 60dip
CheckColumn.Searchable = False
CheckColumn.Sortable = False
B4X:
For i = 1 To CheckColumn.CellsLayouts.Size - 1 'add custom check box to table
'Sleep(0)
Dim pnl As B4XView = CheckColumn.CellsLayouts.Get(i)
Dim ColCheckBox As CheckBox
ColCheckBox.Initialize("")
St.SetButtonTintList(ColCheckBox,Colors.Gray,SysDeclare.COLOR_DARK_NAVY)
pnl.AddView(ColCheckBox, 5dip, 5dip, CheckColumn.Width - 10dip, tblPhoneContacts.RowHeight - 10dip)
Next