14-05-19 04:06 PM
14-05-19 05:55 PM
14-05-19 05:55 PM
14-05-19 05:56 PM
15-05-19 06:14 PM
15-05-19 11:12 PM
DataColumn col = new DataColumn(); if(colType=="Number"){ col.DataType = System.Type.GetType("System.Int32"); } else if(colType=="Text" || colType=="Password"){ col.DataType = System.Type.GetType("System.String"); } else if(colType=="Collection"){ col.DataType = typeof(DataTable); } else if(colType=="Date" || colType=="DateTime" ||colType=="Time"){ col.DataType = System.Type.GetType("System.DateTime"); } else if(colType=="Flag"){ col.DataType = System.Type.GetType("System.Boolean"); } else if(colType=="TimeSpan"){ col.DataType = System.Type.GetType("System.TimeSpan"); } else if(colType=="Image"){ col.DataType = typeof(Bitmap); } else if(colType=="Binary"){ col.DataType = System.Type.GetType("System.Byte[]"); } col.ColumnName = colName; Collection.Columns.Add(col);Â Â Â New_Collection = Collection;
22-05-19 06:22 PM