Swap columns in a TStringGrid (Views: 104)
Does anyone know how to swap two columns in TStringGrid? If you try to exchange() the two columns as if they are TStringLists all hell breaks out (... because they aren't really TStringLists I guess?).
I would use an intermediate, temporary string list. Let's say you want to exchange columns 3 and 5:
Temp := TStringList.Create;
<< Back to main page