Move to next column if entered column is read only lazarus / 16-Databases ---------------------------------------------------------------------- daveinhull · 2018-12-02 10:17 Hi, Could anyone point me in the right direction to work out how to move to the next column in a DBGrid if the entered column is read only. Thanks Dave ---------------------------------------------------------------------- sash · 2018-12-02 20:32 Something like that (not tested)Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.DBGrid1ColEnter(Sender : TObject);begin  with DBGrid1 do begin    if Assigned(SelectedColumn) and (not SelectedColumn.ReadOnly then    if SelectedColumn <> LastColumn then // handle (ignore) last column        SelectedIndex := SelectedIndex + 1;  end;end; Upd: should you care (and will be next OnColEnter triggered) if next column is readonly too? ---------------------------------------------------------------------- daveinhull · 2018-12-28 16:13 Hi sash, Sorry I missed your reply, many thanks Dave