
06-14-2003, 02:08 PM
|
|
Newcomer
|
|
Join Date: Jun 2003
Location: Galax, Va
Posts: 1
|
|
dataset error
|
whenever I generate a new dataset from a dataadapter I get this funny message in my task list
C:\Program\dsAuction.vb(562): 'Public Property item() As String' hides a default property on a base class because 'Public Property item() As String' is not declared 'Default'. 'Shadows' assumed.
C:\Program\dsAuction.vb(562): property 'item' shadows an overloadable member declared in the base class 'DataRow'. If you want to overload the base method, this method must be declared 'Overloads'.
my program refuses to run after i generate a dataset and get this error, I've tried making a new program and have practically started from scratch but I still get this same error.
This is the code the error points to, which is vb generated code in the dsauction1 class
Code:
Public Property item As String
Get
Try
Return CType(Me(Me.tableauction.itemColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("Cannot get value because it is DBNull.", e)
End Try
End Get
Set
Me(Me.tableauction.itemColumn) = value
End Set
End Property
any help will be much appreciated!!!!
|
|