G
George
Hi,
I need to change the datatype of a datacolumn from Int16
to Int32 under certain conditions at runtime. The problem
is that the table is already populated with data, although
the data in the column to change can be removed.
I have got this working by removing the datacolumn from
the datatable, (this clears all data in the column) and
then changing the datatype before adding it again. Problem
with this is the column is added at the end.
Can a datacolumn be added back to it original position?
Or, is there another way of doing this?
Many thanks.
I need to change the datatype of a datacolumn from Int16
to Int32 under certain conditions at runtime. The problem
is that the table is already populated with data, although
the data in the column to change can be removed.
I have got this working by removing the datacolumn from
the datatable, (this clears all data in the column) and
then changing the datatype before adding it again. Problem
with this is the column is added at the end.
Can a datacolumn be added back to it original position?
Or, is there another way of doing this?
Many thanks.