I had fixed this problem with the following code. But now I am facing with another problem, I don't want to add the duplicate rows
Try Dim ieRows As IEnumerator = dsActiveNewAlarms.Tables(0).Rows.GetEnumerator Dim drow As DataRow While ieRows.MoveNext
drow = CType(ieRows.Current, DataRow) dsActiveAlarms.Tables(0).LoadDataRow(drow.ItemArray, True)
End While
Catch ex As Exception MsgBox(ex.ToString()) End Try
With the above code I am adding the row from one dataset to another Before adding the row I want to check whether the row already exists in the dataset, if it exist then I don't want to add it |