I have a TNextGrid with various columns, one of which is a TNxComboBoxColumn.
This column is populated at runtime with a list of possible values:
nxRightToWorkDoc.Items.Clear;
nxRightToWorkDoc.Items.AddStrings(stringlistERTW);
Next step is to populate the TNextGrid with the results of a database query using a "while not tbl.EOF do" loop.
The problem I'm having is that I do not know how to directly set the .ItemIndex on the TNxComboBoxColumn column for every row in the dataset.
I have found this proposed solution:
TNxComboBox(nxRightToWorkDocNew.Columns[nxRightToWorkDocNew.Position].Editor).ItemIndex := <value>
However, I don't understand how the row is identified in the above piece of code.
I would appreciate it if anyone can point me in the right direction