dbgrid focus especific column lazarus / 16-Databases ---------------------------------------------------------------------- eldonfsr · 2011-04-23 01:58 Hi to friends i have problems with dbgrid i want after user input a value give focus to specific column not next column as normal way in dbgrid, u use next code but i dont got its works. Code: [Select]begin             if (StrToInt(DBGQcRep.SelectedField.Text)=1)  and (lnewRqc = true) then  //             ZRQRQC.Post;               DbgQcRep.SelectedField.FocusControl;               DBGQcRep.Columns[3].Field.FocusControl; //            DBGQcRep.SelectedField :=ZRQRQC.FieldByName('ViewDesc') ; //            DBGQcRep.SelectedIndex := 3; //            DBGQcRep.SetFocus;              lnewRqc := false        end;    some body who give waths i do wrong or how i can get that work. thanks ---------------------------------------------------------------------- joseme · 2011-04-27 15:00 Hi, you should use Code: [Select]DBGQcREP.SelectedColumn.Index:=nCol; where nCol is the desired column number. Hope this can solve your problem.