subclass DataRow problem

  • Thread starter Thread starter Steve Richter
  • Start date Start date
S

Steve Richter

I would like to subclass the DataRow class:
class CustomerMasterRow : public System.Data.DataRow
{
public string CustomerName
{
get { return base.ItemArray(1) ; }
}
}

the idea being that each column in the row would be accessed thru a
property.

But I get a compile error right off the bat:
No overload for method 'DataRow' takes '0' arguments

can I encapsulate the DataRow the way I want to, so that I can use
properties to access the columns of the row?

thanks,
-Steve
 
Back
Top