Hi,
I have a dbgrid of which 1 column has a picklist. The picklist is created by assigning a TStringlist to the dbgrid.column.picklist. Now when I select a value from the picklist, I want to pick up this value. But I can't find a PickList.text or anything like that anywhere. I do see
DBGrid.Columns[FColIndex]. PickList.ValueFromIndex[i];
Then you get the text, but then you have to know the index. You can also ask for the index:
DBGrid.Columns[FColIndex]. PickList.IndexOf('some text');
but then you need the text first.
I suffer from the chicken - egg story.
How can I read the text of the value selected in the picklist? I need this before it gets into the cell of the dbgrid.