473,503 Members | 338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

selecting a datatable

I have two datatables in which I am looping through one table and selecting
rows from the other tables that match and then deleting those matches. Once
I delete a row and I try to select another row I get an error that says

"This row has been removed from a table and does not have any data.
BeginEdit() will allow creation of new data in this row."

How do I get around this error
Nov 10 '06 #1
1 2076
I fixed my problem, I had the delete function in the wrong position

"bbdobuddy" wrote:
I have two datatables in which I am looping through one table and selecting
rows from the other tables that match and then deleting those matches. Once
I delete a row and I try to select another row I get an error that says

"This row has been removed from a table and does not have any data.
BeginEdit() will allow creation of new data in this row."

How do I get around this error
Nov 10 '06 #2

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

Similar topics

4
954
by: Job Lot | last post by:
Is it possible to run a select query on DataTable object? Say for instance, my DataTable had following structure StudentID, SubjectID, Score Now, I want list of Score where Score IS NOT NULL...
6
2043
by: aaj | last post by:
Hi all I use a data adapter to read numerous tables in to a dataset. The dataset holds tables which in turn holds full details of the records i.e. keys, extra colums etc.. In some cases I...
3
1016
by: Eych | last post by:
Here's an example: Dim dsMyData As DataSet dsMyData = CallWebService(Param1,Param2) Dim dtUsersTable As DataTable = dsMyData.Tables("Users") I have a Web service that fills dsMyData with...
4
1921
by: rodchar | last post by:
Hey all, Is there a way to get similar functionality as the SELECT DISTINCT records in a SQL Statement when selecting records from a dataset? thanks, rodchar
11
3424
by: Ron L | last post by:
I have a data table that lists a series of items in my database. In my user form, I want the user to be able to filter by a number of criteria (e.g. location, contract, date modified, etc). Other...
3
3375
by: Stropher | last post by:
If I have a table (t1) in a database of SQL-Server and I want to select some rows into a new table (t2), I do the following: select co1, col2, col3 into t2 from t1 //t2 wird be created...
0
1032
by: Carlos | last post by:
Hi all, I have a hyperlink pointing to a page that contains a dropdownlist. This dropdown is loaded using a datatable when the page is loaded. However, I would like the hyperlink to point to the...
4
5080
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I have to load 30,000 unique names into a combox. Filling a dataTable takes only a few milliseconds. But populating the combobox and displaying the list takes several seconds - way...
0
1172
by: Satiz | last post by:
Hi All, I've a TreeView(IE Webcontrol) and a DataGrid in my VS.Net 2003 ASP.Net web form. My problem : If i select a particular node(it may be parent, child or leaf), then the corresponding...
5
2033
by: Nathan Sokalski | last post by:
I want to select only the first n records from a database using VB.NET. I have declared a DataTable and OleDB.OleDbDataAdapter as follows: Dim linkstable As New DataTable Dim linksadapter As New...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
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...
0
7462
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
5579
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
5014
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
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.