1
Reply

datarow to array from data table

Dinesh Santhalingam

Dinesh Santhalingam

Dec 27 2016 11:37 PM
247
I have a data table .I want to filter some item from data table and append the filtered item into an array.
  1. DataTable dt = new DataTable();  
  2.  DataView dv = new DataView(dt);  
  3.  dv.RowFilter = (("Name=ProE"));  
  4.   
  5.    var tableEnumerable = dv.AsEnumerable();// It showing error  
  6.      var tableArray = tableEnumerable.ToArray();  
 Suggest some Ideas.

Answers (1)