I would like to subclass the DataRow class:
class CustomerMasterR ow : public System.Data.Dat aRow
{
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
class CustomerMasterR ow : public System.Data.Dat aRow
{
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
Comment