G
Guest
i have a dataset with a few datatable inside.
most of my table are have values as in integer or double.
but everything i read my table out
e.g. "row.Item("ItemName").ToString
I always need to use the "ToString" method to read the entry out, which means
i need to convert it with Integer.Parse().....then store it to another
integer...then do calculation...then store it back to the datatable using the
ToString method again.
Theres just too many convertion!!
I am thinking is that a way to read out the value in datatable as a integer
straight away?
I tried using ".value", but it seems doesn't work, i cannot load it into an
integer or Double.
any ideas please! thankyou.
most of my table are have values as in integer or double.
but everything i read my table out
e.g. "row.Item("ItemName").ToString
I always need to use the "ToString" method to read the entry out, which means
i need to convert it with Integer.Parse().....then store it to another
integer...then do calculation...then store it back to the datatable using the
ToString method again.
Theres just too many convertion!!
I am thinking is that a way to read out the value in datatable as a integer
straight away?
I tried using ".value", but it seems doesn't work, i cannot load it into an
integer or Double.
any ideas please! thankyou.