473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2560
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*****@hotmail.com> wrote in message
news:ef**************@TK2MSFTNGP12.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
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 ...
2
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...
1
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...
1
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...
3
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...
2
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)...
1
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...
10
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 ...
25
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...

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.