W wuxiaodong Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-11 #1 我在用dbgrid控件用append追加记录后用post后,记录总是跳到第一行,如何解决这个问题?
W westboy2000 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-11 #2 是不是你在post后执行了refresh操作?
D dylb Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-11 #5 用bookmark 先记录下你当前的位置(getbookmark) 完事后gotobookmark就行了, 最后别忘了freebookmark
E e_hua Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-11 #6 数据集执行post后会自动执行刷新操作,所以如果没有记录下post之前的标签且 没有在post后跳转到标签所在的位置的话,记录集一定是回到起始位置的。
J jh925 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #8 var m:tbookmark; begin m:=Query1.GetBookmark;//光标不动 Query1.Active:=False; Query1.SQL.Clear; Query1.SQL.Add('Select * from Project_info order by P_id'); Query1.Active:=True; Query1.GotoBookmark(m);
var m:tbookmark; begin m:=Query1.GetBookmark;//光标不动 Query1.Active:=False; Query1.SQL.Clear; Query1.SQL.Add('Select * from Project_info order by P_id'); Query1.Active:=True; Query1.GotoBookmark(m);