I have a tDbgrid where i insert a lookupbox, here replaced by "beep". Problem is that the first time a user clicks in the column the "State: TGridDrawState" is blank, that "gdFocused in State" is false when it should be true and the user have to click some where else and a second time on the cell to get the action going. Any ideas why State not is gdFocused the first time?
procedure TfrmLineDocument.dbgInvLinesDrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
if (gdFocused in State) then begin