K
kevlin
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TfrmZuoXiDuiLie.ZuoXiQueryAfterPost(DataSet: TDataSet);<br>var<br> i:integer;<br>begin<br> i:=1;<br> with zuoxiquery do<br> begin<br> Open;<br> first;<br> while not eof do<br> begin<br> stringGrid1.Cells[0,i]:=inttostr(i);<br> stringGrid1.Cells[1,i]:=fieldbyname('phoneno').AsString ;<br> stringGrid1.Cells[2,i]:=fieldbyname('incalltime').AsString ;<br> stringGrid1.Cells[3,i]:=fieldbyname('userid').AsString ;<br> next;<br> i:=i+1;<br> stringGrid1.RowCount:=i;<br> end;<br> end;<br> with zuoxiquery do<br> begin<br> close;<br> sql.Clear;<br> sql.Add('select * from tincallteam');<br> open;<br> end;<br>end;<br>我想实现的功能是我在后台数据库里面操作数据如(删除,插人)前台界面的数据也要相应的发生变化.