[RESOLVED] [2005] Need help: inheriting from the tablerow generated by tableadpater wizard
Hi,
I generated a strongly typed dataset, and genrated ProductRow with the TaableAdapter.
I need to implement a class inheritedProductRow that inherits from the productRow class, then I wanna implement the Sub New method for my inheritedProductRow class.
Can u give me a code example for doing that pls. Because when I do this:
Imports myDataSet
Public Class inheritedProductRow
Inherits productRow
Public Sub New()
End Sub
End Class
I get an error saying: Sub New in Base Class can not be called with no arguments or somethiong like that
Can u help me pls
Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard
Call base.New() from your Sub New.
Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard
I thik I still got an error. did u trying Mendhak, creating productRow through tableadapter wizard and implenting class inheriting from that generated productRow class ?
FR: Merci beaucoup :)
Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard
No, I didn't try creating a productRow through a tableadapter, as I do not have a productRow, I don't have your database or any of your code. :)
The reason you're getting the error message is because the base class' constructor needs to be called and at the same time, the base class' constructor may not accept 0 arguments, it may be expecting something.
Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard
i think u re totally right mend, i ll let ya know :)