我用的ADODataSet与数据源连接的,但是在按下DBNavigator的ADD按钮时总是不能按照序号的
顺序在记录集的末尾添加这最后一个记录,我想问下通过ADODataSet那个事件实现在记录集末尾添加新
纪录,谢谢!
顺序在记录集的末尾添加这最后一个记录,我想问下通过ADODataSet那个事件实现在记录集末尾添加新
纪录,谢谢!
解决方案 »
- TWebBrowser分析表格的问题,高分求教?
- 求:开发中英文软件实现方法??
- 各位高手:有用spcomm或mscomm开发过串行通信系统的请指教!!!!
- 关于ComboBox的奇怪问题
- 请问如何在窗体显示8*8个图片,并且每个图像作为对象可以接受事件.
- 如何判断STRINGGRID中某一CELLS(3.ROWROUNT)若为NULL,则ROWROUNT不变。
- 在后台运行而一般用户感觉不到的程序
- DELPHI里的SOCKET的用法,来者有份!
- 急!!,help,一个动态创建数据表的问题
- 哪位知道在一个控件中怎样截获主程序收到的所有消息 ?
- 以下代码如何释放内存?不好意思,分不多了,在线等!
- 有关数据转换的问题,恳请高手回答!
procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn);
begin
adodataset1.Append;
end;
“屏蔽dbnavigator原按钮中的代码”怎样实现?
procedure TFrmNode.Navigator1Click(Sender: TObject;
Button: TNavigateBtn);
begin
case Button of
nbDelete:begin
if MessageDlg('确认删除?',mtConfirmation,[mbYes,mbNo],1)=mrYes then
DMRemote.DataModule1.CDSNode.ApplyUpdates(0)
else
DMRemote.DataModule1.CDSNode.CancelUpdates;
end;
nbPost:begin
DMRemote.DataModule1.CDSNode.Edit;
DMRemote.DataModule1.CDSNode.ApplyUpdates(0);
end;
end;
end;
其他的为
First nbFirst Go to the first record
Prior nbPrior Go to the previous record
Next nbNext Go to the next record
Last nbLast Go to the last record
Insert nbInsert Insert a blank record
Delete nbDelete Delete the current record
Edit nbEdit Permit users to edit the current record
Post nbPost Post the current record
Cancel nbCancel Cancel the current edit
Refresh nbRefresh