J
John Hui
Hi,
I found a strange problem with .Net datatable and
dataview. I would appreciate if anybody caould explain
it to me.
I have a datatable that users update (adding, updating or
deleting). The problem usually occurs when the users add
or delete rows in the datatable. The datatable start
with no rows at all.
I have a method that handles the RowChanged and
RowDeleted events. In that method (event handler), I
check the datable's total row count and then the
datatable's default view count.
I find that when uses add a row, the default view count
is one row more than the datatables's total row count.
The inverse is true when the users delete a row.
Can anyone explain to me why this is so? It this a
Microsoft/.Net bug?
I am using .NET 1.1 and MDAC 2.7 SP1 refresh. I have not
tried with MDAC 2.8.
Thanks.
John
I found a strange problem with .Net datatable and
dataview. I would appreciate if anybody caould explain
it to me.
I have a datatable that users update (adding, updating or
deleting). The problem usually occurs when the users add
or delete rows in the datatable. The datatable start
with no rows at all.
I have a method that handles the RowChanged and
RowDeleted events. In that method (event handler), I
check the datable's total row count and then the
datatable's default view count.
I find that when uses add a row, the default view count
is one row more than the datatables's total row count.
The inverse is true when the users delete a row.
Can anyone explain to me why this is so? It this a
Microsoft/.Net bug?
I am using .NET 1.1 and MDAC 2.7 SP1 refresh. I have not
tried with MDAC 2.8.
Thanks.
John