16-10-19 11:26 AM
16-10-19 05:07 PM
Something like this in C# code stage for any number of columns/rows, needs System.Data.DataSetExtensions.dll reference:
foreach (DataColumn column in inCollection.Columns){ if (column.DataType == typeof(string)) { for (int i = 0; i < inCollection.Rows.Count;i++) { inCollection.Rows[i][column.ColumnName] = inCollection.Rows[i].Field<string>(column.ColumnName).Trim(); } } } outCollection = inCollection;
17-10-19 10:29 AM