Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Access Method
Message
From
01/11/2007 14:50:47
 
 
To
01/11/2007 14:32:14
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 8.0
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01265411
Message ID:
01265804
Views:
9

Personally, I avoid the CommandBuilder and prefer to roll my own. But, first to answer your question:

MyDataSet.Tables[0].PrimaryKey = new DataColumn[] { MyDataSet.Tables[0].Columns["MyPK"] };


Aren't you the big proponent of typed datasets? Shouldn't it be...
DtMyTable.PrimaryKey = new DataColumn[] { DtMyTable.MyPK};
Keep up the talk on untyped datasets, and I'm gonna have to send a letter to your employer. ;)

JUST KIDDING!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform