473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataSet.Delete does not change number of rows

Hi,
I have a DataSet with 4 rows. I use .Delete command to delete a row
from it. I use .Count to get the number of remaining rows - still get
4, and if I try to access the rows, I get a
'DeletedRowInaccesibleException' on it. Has anyone seen this kind of
behaviour?
Thanks a lot in advance
DG

Oct 29 '07 #1
2 2420
I have a DataSet with 4 rows. I use .Delete command to delete a row
from it. I use .Count to get the number of remaining rows - still get
4, and if I try to access the rows, I get a
'DeletedRowInaccesibleException' on it. Has anyone seen this kind of
behaviour?
Thanks a lot in advance
Read the docs for "DataRow.Delete()". Review "AcceptChanges()" and
"RowState" in particular.
Oct 29 '07 #2
On Oct 29, 9:33 am, "Larry Smith" <no_spam@_nospam.comwrote:
I have a DataSet with 4 rows. I use .Delete command to delete a row
from it. I use .Count to get the number of remaining rows - still get
4, and if I try to access the rows, I get a
'DeletedRowInaccesibleException' on it. Has anyone seen this kind of
behaviour?
Thanks a lot in advance

Read the docs for "DataRow.Delete()". Review "AcceptChanges()" and
"RowState" in particular.
Thanks for your input. I had tried that, but I was getting worse
discrepancies with that. As in , in terms of dataset size...my table
was not getting saved accurately...

Oct 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
3844
by: robert | last post by:
been ruminating on the question (mostly in a 390/v7 context) of whether, and if so when, a row update becomes an insert/delete. i assume that there is a threshold on the number of columns of the...
0
3479
by: Dave | last post by:
Tried posting in the Winform Forum without much luck, so posting here... After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is...
4
2546
by: John Rose | last post by:
I have one databound TextBox on a page with one button. The TextBox loads the correct SQL record data but typing a new string into the Textbox fails to change the DataSet. Any ideas? There must...
2
1235
by: Darren Clark | last post by:
I have a data set... in which i need to remove 1 row based on a particaly name eg i have a data set (data) and it has 1 table and N rows.... It has a column name of i want to remove all...
2
928
by: Sam | last post by:
Hi ther First off, sorry for this long post, but I think it is needed to explain my proble I have this dataset I am working with named dsMyDataset I am trying to add data to the dataset/ access...
4
3737
by: Dave Edwards | last post by:
I understand that I can fill a datagrid with multiple queries, but I cannot figure out how to fill a dataset with the same query but run against multiple SQL servers, the query , table structure...
7
3351
by: Jean Christophe Avard | last post by:
Hi! I have a dataset that retreive all the item information from the database. I need to be able to edit them, in the dataset and in the database. I have this code, could anyone tell me if I'm...
4
2223
by: Al | last post by:
I have this scenario: 1. XML file with schema and data is created from SQL Server tables. XML file contains 6 tables, some of them have rows, some of them are empty. 2. XML file is given to the...
0
1256
by: Patrick | last post by:
Hello, I want to modify an existing XML-File based on Input in a Form. I used a DataSet to load the XML File with the ReadXml method. I then displayed the relevant entries via the GetChildRows...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.