My app has a stringgrid (called data).
I enter values into the grid via ctrl-c ctrl-v
What I want to do is change a column value (comes as date) to a different date format.
I can get this to work with an onselectcell
procedure TSharesForm.DataSelectCell(Sender: TObject; aCol, aRow: Integer;
var CanSelect: Boolean);
var dt: TdateTime;
s : string;
begin
if ((acol<>4) and (acol<>7)) then exit;
dt := ScanDateTime('DD"/"MM"/"YYYY', Data.Cells[acol,arow]);
Data.Cells[acol,arow] := FormatDateTime('DD MMM YYYY',dt);
end;
But would like it to change when the data is inserted (ctrl-v).