0

I have a small problem when I edit cells in my datagrid.
If I leave my cursor in the cell I just edited. and runds the updatecommand
the cell does not update the edited value.
But if I leave the cell before I run the updatecmmand it does.

Anyone who remember what I can do to fix this?

Edited by johmolan: n/a

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by johmolan
0

My update code looks like this:

If Kalkyle1DataSet.Tables("Materialer_total").GetChanges(DataRowState.Added Or DataRowState.Modified Or DataRowState.Deleted) Is Nothing Then
                    'there are no changes
                Else
                    Materialer_totalBindingSource.EndEdit()
                    Materialer_totalTableAdapter.Update(Kalkyle1DataSet)
                End If

And this works great, but my problem is when the marker/Cursor or whatever it it called is still blinking in the cell after I hav edited a value, this cell will not be saved with the new value but all the others is working as they should.

Is there sameting in the datagridview method that I can use to sort this problem out?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.