设置DataTable行属性

dt.Columns["ColumnName"].DataType=Type.GetType("System.bool");

原文地址:https://www.cnblogs.com/deepalley/p/10544397.html