你可以到这里看看,上面是一些朋友改写的ClientDataSet跟DataProvider控件。
他们好像已经解决了你的问题(看到更新2的么?)。不过,还不是最终发布版本,你可以通过CVS获得代码,如果你不能获得的话,留下你的邮箱,我发一份给你。
http://sourceforge.net/projects/midess
WHAT'S NEW
1) A new property PrimaryKey that cut offs dependency on Fields[0]. In prior version Fields[0] was assumed to be the primary key. All field types are now supported (not just TIntegerField types).
2) Properties AutoIncrementStep and AutoIncrementSeed that have similar meaning with the one's used in ADO. NET have been added.
3) ForeignKeys property is now a collection property and methods have been added that provide run time manipulation of referential constraints.
4) Added support for SQL servers using AutoInc columns (a new event added called OnGetLastInsertedValue)
3) Better reconciliation handling (fixed some bugs related to that)
5) No need to handle OnGetConnFldIdx event (this eventdo
esn't exist any more). This is now managed automatically
6) Better clone support (fixed some relevant bugs)
7) Updated help file with more comments, topics and examples
8) 2 sample applications as showcases of KT Data Component features