issue with GetChanges(DataRowState.Modified)

S

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)).EndCurrentEdit()
Dim dtModifiedData As DataTable =
dsFields.Tables(0).GetChanges(DataRowState.Modified)

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
 
C

Cor Ligthert

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
 
S

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.
 
C

Cor Ligthert

Sam,

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

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top