Question : Deleted row information cannot be accessed through the row

Hi
I am getting an error on a dataset.

The XSD is called ProductionDataset. On calling a sort method VB throws this exception and goes to the following line in the ProductionData.Designer.Vb

  .DebuggerNonUserCodeAttribute()>  _
        Public Property Year() As String
            Get
                Return CType(Me(Me.tableProductionData.YearColumn),String)
            End Get
            Set
                Me(Me.tableProductionData.YearColumn) = value
            End Set
        End Property

I'm not sure where to go with this in solving problem.

Help /advice would be appreciated, thank-you.

Answer : Deleted row information cannot be accessed through the row

Apparently, the is used to track the changes in the dataset.  But this causes a conflict with your code, because the framework is trying to sort the dataset even after the user removed a record.  This is obviously not going to work.  I am not very familiar with the automatic handling of the dataset this way, so I can't really help you much more.

Perhaps the best way is if you could somehow detect that the row has been deleted and skip processing in the Compare() method.

Don't worry about the points.  I really only want to help, so if we can't arrive at a solution just have the question closed.

    -dZ.
Random Solutions  
 
programming4us programming4us