当修改显示的表中的内容时候,如何知道修改了哪个字段的值,值为多少???
解决方案 »
- 悬赏100,如何把记录插入到中间的物理地址或如何按主键排序访问表
- 为什么用postmessage发的消息收不到?
- 怎么通过filestream打开经过加密的文件
- 如何确定SHELLEXECUT中的应用程序路径(在线等)
- 这样的情况DELPHI会自动进行安全保护吗?
- 要与西门子的模块,关于Delphi与opc接口基础及编程
- 很急的问题? 断点无效??
- 现在DELPHI中的指针还重要吗???
- 抢分问题:怎样才能查询出表中某字段的最大值,并把它加1 后 赋给edit.text?
- 难道Delphi在数据库方面真的不如PowerBuilder
- TValueListEditor控件的问题,谁帮我解决一下啊!急!
- DBnavigator的确认删除对话框能不能换成自己设计的啊?
用DataSet.Modified可以知道整个数据集有没有被修改。
至于TDBNavigator的会在按键后触发一个事件(在数据集自动处理前):
property BeforeAction: ENavClick;
它是这样定义的:
type
ENavClick = procedure (Sender: TObject; Button: TNavigateBtn) of object;
其中,TNavigageBtn的定义如下:
type TNavigateBtn = (nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbEdit, nbPost, nbCancel, nbRefresh);可选值:Button Value Action
--------------------------------------------
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 Refresh the data in the dataset