Geeks With Blogs
Sathya Narayanan Srinivasan .NET Developer

Access the select method of the datatable to convert the DataRowCollection to DataRow[];

You might get an error like this:-

System.Data.DataRow.DataRow(System.Data.DataRowBuilder)' is inaccessible due to its protection level

To overcome that use the select method from the datatable

Ex :-

DataRow[] results = genericDataSet.Tables[0].Select(); 

Posted on Tuesday, August 17, 2010 9:57 AM | Back to top

Comments on this post: Convert DataRowCollection to DataRow[] (Array) in C#

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © sathya | Powered by: