I will get data in DataTable. I am going to iterate data in foreach. I will have all types of data in Datatable. Now I need to find Double for each item (string) in DataTable. How to find IsDouble for string?
Ex:
I have "21342.2121" string. I need to covert this to Double. But sometimes the data will be "TextString". So I can’t use Double.Parse().
How to handle this?
This is the wrong approach, you’ll need to know up front what each column in the data table represents. Run this program to see what can go wrong: