Hi
In a grid i have a column with a price like '200 USD'
With this format sorting is inpossible.
So i have added a hidden column with only the numeric values (200 in this case)
if sorted on column (200 USD) i want to change the name of the Sort column to the name of the column with '200'
for i := 0 to ASortItems.Count - 1 do
begin
if SameText(ASortItems[i].Name, 'Cost') then
begin
ASortItems[i].Name := 'CostHidden'
Break;
end;
end;
HowEver the name is readOnly
Eric