datarow to array from data table

Dec 27 2016 11:37 PM
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)