Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a column type in a dataset
Message
From
06/03/2007 11:04:55
 
 
To
06/03/2007 10:54:11
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01201032
Message ID:
01201059
Views:
26
>I believe the column type of a defined column is immutable (once it contains data, you can't change the type). The only way I know how to do this would be to clone the dataset to get an empty structure, change the column type of the columns you want and then using foreach loop through the data rows collection, copy the values to a new datarow (performing the conversions first) and add the row to the new table.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform