Oncellclick does not change place in ADOTable. (delphi) -


i using on cell click procedure dbgrid open form shows info user have clicked on when not change place in adotable, did, instead stays in same place , displays info , not user have clicked on.

i hope have explained problem well. if not try explain better.

thanks in advance.

    procedure tfrmstudentviewer.formshow(sender: tobject);     begin        adoforteachers.active:=false;        if flagteacher=true          begin          adoforteachers.sql[2]:='where (((tblusers.level)=1)) or  (((tblusers.level)=2))';          adoforteachers.active:=true     end; 

and onclick

   procedure tfrmstudentviewer.dbgrid1cellclick(column: tcolumn);    begin       frmviewuser.showmodal    end; 


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -