Obtaining type of column in datatable

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

If I a column name for a datatable in vb.net 2005 and want to know whether
the column is a char or int how would I ask?

E.g., code starts like this. How do I obtain the type of column?

MyTable.Rows(0)("MyColumnUnknownIfCharOrInt")

Thanks

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top