How to add a column to a DataTable

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I want to add a Column to a DataTable.
I use the codes below;
I want the Column dc to be a type of Boolean.
How can I assign the DataType?
 
ad said:
I want to add a Column to a DataTable.
I use the codes below;
I want the Column dc to be a type of Boolean.
How can I assign the DataType?

dc.DataType = typeof( bool);
dt.Columns.Add( dc);

Derek Harmon
 
Back
Top