How to set a DataTable Column DataType to boolean

K

keithb

The following code sets a DataTable column DataType to "String"

column.DataType = System.Type.GetType("System.String");

What is the corresponding statement when the data type is boolean? I have
tried both "bit', "bool", and "boolean" and all cause an error.

One would think that a simple search for "System.Type.GetType" in Books On
Line would yield an answer but all I get is page after page after page of
loosely unrelated information.

Thanks,

Keith
 

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

Top