.Net:- Compile Error – ‘System.Data.DataRow’ does not contain a definition for ‘Field’ and no extension method ‘Field’ accepting a first argument of type ‘System.Data.DataRow’ 


Trying to steal someone else’s code.

But, as sometimes happens, it does not even compile.


Error Message


'System.Data.DataRow' does not contain a definition for 'Field' and no extension method 'Field' accepting a first argument of type 'System.Data.DataRow'




The error states that

  1. The System.Data.DataRow object is intrinsically missing the Field Property
  2. And, that I have not helped to even include an extension method that will provide one



As I know I am using LINQ reached for System.Data.DataSetExtensions.


using System.Data.DataSetExtensions;

One thought on “.Net:- Compile Error – ‘System.Data.DataRow’ does not contain a definition for ‘Field’ and no extension method ‘Field’ accepting a first argument of type ‘System.Data.DataRow’ 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s