good evening group
I’m trying for the first time to “store” two values in the list of a combobox. one value is the visible one (company name) and the other is the one not immediately visible (ID) and to store it I use the RowTag (index).
While Not Rows.AfterLastRow
ComboBoxNomiFornitori.AddRow(rows.Column("NomeDitta").StringValue)
ComboBoxNomiFornitori.RowTagAt(contatore)=rows.Column("NomeDitta").StringValue
contatore=contatore+1
rows.MoveToNextRow
Wend
I think they are stored for viewing, I wanted to check so I wrote in SelectionChanged of ComboBox:
messagebox Magazzino.ComboBoxNomiFornitori.Text + " ******** " + ComboBoxNomiFornitori.RowTagAt(ComboBoxNomiFornitori.Index)
But nor work. I think that is an Index problem for RowTagAt.
In practice I want to display the name of the company and its index, and when I click on the company, I can also go back to the index associated with the combobox row.
2 posts - 1 participant