Code to convert dataview to datatable in c#

Karthikanbarasan
Posted by Karthikanbarasan under C# category on | Points: 40 | Views : 42489
    Datatable dt ;
dt = ""; //fill some values in this datatable
DataView dv = new DataView("ViewSource"); // give the view source
dv.RowFilter = filterCondition; // Give some condition to filter
dt = dv.ToTable();

Comments or Responses

Login to post response