DataView myDataView = new DataView(); myDataView = ds1.Tables[0].DefaultView; if (sortExp != string.Empty) { myDataView.Sort = string.Format("{0}{1}",sortExp,sortDir); } ..................... grd.DataSource = myDataView; DataTable dt3 = new DataTable(); dt3 = myDataView.Table.Copy(); ds.Tables.Add(dt3);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)