I have a save button on my form which loops through all rows of the tcxgrid and reads its values. I'm trying to read the value of a combo box I have in one of the columns, but I need to read the Key value not the text of it.
for I := 0 to tv.DataController.RecordCount - 1 do
begin
Location := tv.DataController.Values[I, colLocation.Index];
end;
colLocation is the combobox, but doing that gives me the text selected not the ItemIndex values. Any clues?
thanks