issue with GetChanges(DataRowState.Modified)

  • Thread starter Thread starter Sam
  • Start date Start date
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
 
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
 
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.
 
Sam,

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

Cor
 
Back
Top