473,545 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when using rowchanging event in datatable

AH
Hi, I used a dataTable to bind to datagrid. I setup code to handle the
rowchanging event but whenever I change from one row to another in the
datagrid, the datagrid changed to a white box with a big red-crossed, an
error message box with titled "Error when committing the row to the original
data store" and prompted "no value at index 0, do you want to correct the
value?"
I suspect some bugs in VB.NET (2003) since column changing , column changed,
and row changed events all worked except for the row changing event. I
originally thought it was due to first row, I suspend the event handler till
more then one row of record been entered but still the same problem occur.
Could anyone care to comment or experience the same?

Thank you,

Albert
Nov 20 '05 #1
1 2571
Hi,

You are not the first person to report getting a big red X in a
datagrid. Post your code for the rowchanging event maybe we can see the
error.

Ken
-------------------
"AH" <ha*****@hotmai l.com> wrote in message
news:ef******** ******@TK2MSFTN GP12.phx.gbl...
Hi, I used a dataTable to bind to datagrid. I setup code to handle the
rowchanging event but whenever I change from one row to another in the
datagrid, the datagrid changed to a white box with a big red-crossed, an
error message box with titled "Error when committing the row to the original data store" and prompted "no value at index 0, do you want to correct the
value?"
I suspect some bugs in VB.NET (2003) since column changing , column changed, and row changed events all worked except for the row changing event. I
originally thought it was due to first row, I suspend the event handler till more then one row of record been entered but still the same problem occur.
Could anyone care to comment or experience the same?

Thank you,

Albert

Nov 20 '05 #2

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

Similar topics

23
2199
by: Eva | last post by:
Hi i am trying to insert a new row into one of my datatabels that i have in my dataset when a button is clicked. here is my code Dim ClientInsRow As DataRow = dtClient.NewRo ClientInsRow("Surname") = txtSurname.Tex ClientInsRow("Forename") = txtForename.Tex ClientInsRow("OrgName") = txtOrganisation.Tex ClientInsRow("Address") =...
2
4368
by: J | last post by:
I'm experimenting with strongly typed datasets, and when the .Fill method is called, the RowChanging fires for each row. This causes a problem when the existing data does not adhere to the rules outlined in the RowChanging method. Is there an easy way to not have the RowChanging event occur when the dataset is being filled? Example code...
1
5275
by: Matthew Louden | last post by:
I am trying to implement the sort event in data grid. I set the data grid's AllowSorting property = True. I implement the following code that should be the event will fire when the user click any of the columns in the table: Private Sub dgReport1_SortCommand(ByVal source As Object, ByVal e As...
1
2052
by: fredda054 | last post by:
Hi everybody ! With help from some nice people here I'm getting close to solve my problem with dbnull values in a repeater. I got it pretty much done, I just ned to fix some syntax. I get a parse error on this code because it's not well formed. Can someone please take a look at it and try to find what I'm doing wrong...I've been staring...
3
3180
by: Jon | last post by:
I'm learning about datatables. When using the example provided by MS in the ..NET Framework Class Library for DATATABLE (see below) I get an error on line 3 that says "Type expected". Is something missing from the code? Thanks - Jon Private Sub MakeParentTable() ' Create a new DataTable. Dim myDataTable As Datatable = New...
2
4514
by: gmccallum | last post by:
I have a data entry screen using controls bound through a bindingSource, TableAdaptor and a BindingNavigator to move through the records. When I have an data entry error (such as Null for a value) I get the following error raised all the way to the App.Run command. This is not a dataGridView, so I can not use that DataError event to catch it....
1
8095
by: Daniel Jeffrey | last post by:
..Net 2.0 VStudio 2005 C# I know this is going to seem like a strange question, as even I am sure I have missed something - but I cant find it. I want a simple event on any of the objects (BindingSource, DataSet, DataTable) that fires when data in a bound control changes.
10
3690
by: pechar | last post by:
Hi all, I created a test web application in asp.net. It works like a dream in IE but when it gets to Firefox I get an exception as follows ----------------------------------------------------------------------------------------- "System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages...
25
2695
by: premprakashbhati | last post by:
i want to have checkboxes in my gridview ...by checking it ,i can delete the row/rows.... so i have written code and got 2 Errors ...can anyone solve it... Error:1...'gridview.RetrieveItems()': not all code paths return a value ,and Error:2...No overload for method 'DeleteRows' takes '1' arguments Here is my aspx.cs Code: using System;...
0
7502
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7692
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7946
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7791
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
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 we have to send another system
1
1045
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.