DataTable dtTableInput = new DataTable(); dtTableInput = GetDataTable(); DataSet dsFinal = new DataSet(); DataTable dtServcice = new DataTable(); for (int i = 0; i <= dtDistinctValues.Rows.Count - 1; i++) { DataView dv = dtTableInput .DefaultView; dv.RowFilter = "Service = 'ABC'"; dtServcice =dv.Table.Copy(); dtServcice.TableName=dtDistinctValues.Rows[i][0].ToString(); dsFinal.Tables.Add(dv.Table); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)