The
TypedDataSetDesigner
creates a
Class
for the
DataRow
inherited from DataRow class like
Partial Public Class SpDetRow
Inherits Global.System.Data.DataRow
with a
Property
for each field of the
DataBase
with the
Field name
as follows:
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Name() As String
Get
Return CType(Me(Me.tableSpDet.NameColumn), String)
End Get
Set(ByVal value As String)
Me(Me.tableSpDet.NameColumn) = value
End Set
End Property
Similarly in the above case it has created a
Property
Item
for the
field Item of the Database.
But the base class
DataRow
has a property
Item
as explained here
http://msdn.microsoft.com/en-us/library/system.data.datarow.aspx#Y0[
^] hence the above error may be thrown.
To avoid that error try renaming the Field name in the DataBase from
Item
to say
SpDetItem
and generated the typed DataSet again from the DataBase, so that the designer will generate the Property for
SpDetItem
instead of Item, so that the above conflict can be resolved.
I think it may be helpful.