DataRow

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

The documentation indicates the DataTable has a property called "Rows" and
it states that "Gets the collection of rows that belong to this table."
When I go to use this property (show up in intellisence) all is well, but
when I attempt to compile, the compiler tells me there is no such property
(The exact msg is 'System.Data.DataTable does not contain a definition for
Rows). What am I doing wrong? I want to get a single row from the
collection...can I not just do that with the following (C#)?

DataRow Fred = dt.Rows[0]?
 
I apparently had two attributes with the same name which caused the
"problem" where the system got all confused!
 
Back
Top