Hi,
Can anyone help or point me to some documentation.
I have a DBGrid which is the only control.
There is an Enter routine:
procedure TForm1.DBGrid1Enter(Sender: TObject);
begin
sqlQuery1.first;
sqlQuery1.edit ;
showstate(sqlquery1);
end;
Where showstate just goes to a function that converts the SQL state into a string and at this point it shows the state is EDIT.
I then have an ColExit routine
procedure TForm1.DBGrid1ColExit(Sender: TObject);
begin
if DBGrid1.SelectedField.FieldName = 'FuelDate' then
begin
ShowState(sqlquery1);
DBGrid1.SelectedField.Value := '12/12/2018';
end
end;
The only thing I do once loaded is press Tab and the State is now shown as BROWSE in the ColExit routine. The Tab key should move it to the next cell.
I can't figure out where or why it is going between Edit and Browse when only the Tab key is pressed.
Any help would be most appreciated.
Dave