K
Kevin Humphreys
Hi,
I need to change the Datatype of Datatable Column when the dataset populates
the Datatable
I would like to be able to do this either after the datatable is assigned to
the dataset or
before this happens.
E.G. Convert datatype from Int to String
Below I want to change the first column to string.
myTable = ds.Tables("Table1")
For Each dr1 As DataRow In myTable.Rows
dr1(0) = "Hi"
Next
This will fail because dr(0) is set to int
Thanks In Advance,
Kevin.
I need to change the Datatype of Datatable Column when the dataset populates
the Datatable
I would like to be able to do this either after the datatable is assigned to
the dataset or
before this happens.
E.G. Convert datatype from Int to String
Below I want to change the first column to string.
myTable = ds.Tables("Table1")
For Each dr1 As DataRow In myTable.Rows
dr1(0) = "Hi"
Next
This will fail because dr(0) is set to int
Thanks In Advance,
Kevin.