G
Guest
Hello,
I am receiving a System.NullReferenceException error when the ImportRow is
executed. However, as you can see there are rows in the table and I can see
the data in Rows(0) in the
dsetTempPlaceInfoFromPt.Tables("Places").Item.ItemArray of QuickWatch. Thus
it is not null. The dSetPlaces (where I am trying to copy the row to) does
not have any tables or rows; is that the problem? Does the ImportRow
automatically create the table "Places" in the dataset dSetPlaces if it is
not there? Maybe that's my problem.
If dsetTempPlaceInfoFromPt.Tables("Places").Rows.Count = 1 Then
dSetPlaces.Tables("Places").ImportRow(dsetTempPlaceInfoFromPt.Tables("Places").Rows(0))
I am using .NET 2.0 framework and there are values in the ItemArray of the
Rows(0).
Help!
I am receiving a System.NullReferenceException error when the ImportRow is
executed. However, as you can see there are rows in the table and I can see
the data in Rows(0) in the
dsetTempPlaceInfoFromPt.Tables("Places").Item.ItemArray of QuickWatch. Thus
it is not null. The dSetPlaces (where I am trying to copy the row to) does
not have any tables or rows; is that the problem? Does the ImportRow
automatically create the table "Places" in the dataset dSetPlaces if it is
not there? Maybe that's my problem.
If dsetTempPlaceInfoFromPt.Tables("Places").Rows.Count = 1 Then
dSetPlaces.Tables("Places").ImportRow(dsetTempPlaceInfoFromPt.Tables("Places").Rows(0))
I am using .NET 2.0 framework and there are values in the ItemArray of the
Rows(0).
Help!