Guys,

I have declared 2 dataRows and assigned New daraRows as below.

Dim aRow as DataRow
aRow = OutFormat.DataSet.Tables("demotbl").NewRow '*** Point 1

----
----

Dim bRow as DataRow
bRow = OutFormat.DataSet.Tables("demotbl").NewRow '***Point 2

---
---

bRow = OutFormat.DataSet.Tables("demotbl").NewRow 'No. '*** Point 3

---
---

Point 1: I have created aRow and assigned some fields to its columns.
Point 2:Then I created bRow and assigned some fields (In the debug
mode I can see aRow is still active).
Point 3:Then I created again bRow and this time It has erased all the
contents of aRow.

How would that possible? I have not changed anything aRow.

Please help.

RE: DataRow Issue Pls help by jp2msft

jp2msft
Wed Feb 20 08:35:00 CST 2008

I think you are double posting. Please be patient, and look at your other
question.

FYI: Double Posting is very frowned on, and others will be less likely to
help you if they catch this.

"smtwtfs007@gmail.com" wrote:

> Guys,
>
> I have declared 2 dataRows and assigned New daraRows as below.
>
> Dim aRow as DataRow
> aRow = OutFormat.DataSet.Tables("demotbl").NewRow '*** Point 1
>
> ----
> ----
>
> Dim bRow as DataRow
> bRow = OutFormat.DataSet.Tables("demotbl").NewRow '***Point 2
>
> ---
> ---
>
> bRow = OutFormat.DataSet.Tables("demotbl").NewRow 'No. '*** Point 3
>
> ---
> ---
>
> Point 1: I have created aRow and assigned some fields to its columns.
> Point 2:Then I created bRow and assigned some fields (In the debug
> mode I can see aRow is still active).
> Point 3:Then I created again bRow and this time It has erased all the
> contents of aRow.
>
> How would that possible? I have not changed anything aRow.
>
> Please help.
>