all groups > dotnet windows forms databinding > april 2008 >
You're in the

dotnet windows forms databinding

group:

Converting a DataColumn's Datatype on the fly Options


Converting a DataColumn's Datatype on the fly Options kalamantina
4/10/2008 10:38:47 AM
dotnet windows forms databinding:
Hi everyone,
I have one dataset that gets built dynamically from XML, I parse a
large soap message and extract the schema from XML( I am working
in .NET 1.0, sorry for the pain). anyway, by default the dataset
resutling from this
process has a data type of string for all columns. My question is :
Is there a way to convert the datatype of columns from String to
Double, or to any other format, on the fly?
I know for a fact that all values in that datacolumn are all doubles.
One thing I am doing is creating a new column with a datatype of
double, and then looping through all existing row in the string
column
and then converting them, but this is a nightmare as the size of the
table grows.
Thank you.
AddThis Social Bookmark Button