473,379 Members | 1,511 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,379 software developers and data experts.

issue with GetChanges(DataRowState.Modified)

Sam
Hi,
Some people are going to say I drive them crazy again...but here we
go...

I have the following code :

BindingContext(m_dsFields.Tables(0)).EndCurrentEdi t()
Dim dtModifiedData As DataTable =
dsFields.Tables(0).GetChanges(DataRowState.Modifie d)

It works only for the first row of my grid. Changes to the other rows
are only detected if I've modified also the first row, otherwise they
are not.

Why ???
Thx

Nov 21 '05 #1
4 3479
Sam,

In my opinion would you tell, that you do these changes with a non standard
control and than which one, otherwise there is again such a long thread as
previous.

:-)

Cor
Nov 21 '05 #2
Sam
Still the same : FlyGrid
http://9rays.net/cgi-bin/components.cgi?act=1&cid=105

I don't think this is related to the control though
I have another grid of the same type with which it works fine. There
must be some bugs in my code, other than the one i've posted. I'll try
to find out.

Thx

Nov 21 '05 #3
Sam
I should describe my problem more clearly:

If I modify the first row then it works fine.

If I modify any rows below the first one, say one field of the second
row, then the change won't be detected. If I change another field of
any rows, then the change made to the field of the second row will be
detected but not this last change. In short, there is a kind of delayed
state detection. This is really bizarre.

Nov 21 '05 #4
Sam,

Can you show what you bind to the datagrid (what is the datasource) that can
be the reason.

Cor
Nov 21 '05 #5

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

Similar topics

1
by: Paul | last post by:
I am writing a DataBase Client/Server pair of applications in C#. The client registers a query, the server populates a dataset and its contents sent via XML to be displayed in the client DataGrid....
1
by: Fleckman | last post by:
I have a situation where I need to add rows to tables with a Parent-Child relationship which presents a constraints violation when I reject the changes. Here is the scenario: I add a row to a...
24
by: Sam | last post by:
Hi, I have a datagrid which source is a dataset : dgFields.Rows.DataMember = m_dsFields.Tables(0).TableName dgFields.Rows.DataSource = m_dsFields Now my values are displayed properly and when...
8
by: Sam | last post by:
Hi, Here is my code : For Each row As DataRow In m_dsTabs.Tables(0).Rows If CInt(row("TabId")) = DirectCast(tabQryTabs.SelectedTab, QueryTabPage).TabId Then...
1
by: kcakebread | last post by:
Using VB 2005, I have a strongly typed dataset (from a .xsd file in my project). When I load data into this dataset, the immediate window shows: ?ds.TableX(0).IstheFieldNull True So,...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
0
by: Jim | last post by:
Hi, ..Net 2003, Language: VB Problem: Populating a Dataset with a datatable, the columns of which are bound to controls on a form. I'm assigning the value directly in 2 of the fields of the...
0
by: John Sheppard | last post by:
Hello there, I have a typed dataset with a few relations. There is no cascading update/delete set on the relation. Whenever I edit the master table with a bound control, it is setting all the...
3
by: John Sheppard | last post by:
Hello there, I have the following code; I do this as a work around for a dataset.haschanges method which doesnt appear to work correctly either For Each dt As DataTable In myDs.Tables If Not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.