How can I check the datatype of the value which is coming from one of the dataTable

I want to extract the datatype of the value which is coming form the data table.
Someone please help me in this.
Thank you in advance

Regards,
Suraj

3 Likes

Hello @surajhy

You can try this:

string strDataType = valueDt.GetType.tostring

Let me know if it’s working!

10 Likes

Thank you so much :slight_smile:
I tried this way
valueDT.Rows(0).Items(0).GetType.tostring

Regards,
Suraj

2 Likes

Welcome :slight_smile:
Please mark as solved

1 Like