S satoni Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-02 #1 我在学习一个例子,中间用dbgrid和table相连,但是当我插入一条记录的时候,为什么我得记录不能马上在dbgrid上面显示更新后的效果,而是要重新打开才能有我刚才加进去的东西~~ 谢谢
W wjiachun Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-02 #2 Refresh了么? procedure TForm1.Button1Click(Sender: TObject); begin try Table1.Append; finally Table1.Refresh; end; end;
Refresh了么? procedure TForm1.Button1Click(Sender: TObject); begin try Table1.Append; finally Table1.Refresh; end; end;
S satoni Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-02 #4 我写了refresh,但是显示错误信息,table does not support this operation because it is not uniquely indexed; 现在我该怎么办啊?
我写了refresh,但是显示错误信息,table does not support this operation because it is not uniquely indexed; 现在我该怎么办啊?
B bugs Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-02 #6 该表是否建了唯一索引,而append的记录与表中的记录重复。
S satoni Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-02 #7 我肯定不会插入一条一样的记录啊~~而且我也没有建立主键