Link to home
Start Free TrialLog in
Avatar of dehranph
dehranph

asked on

Dataset does not update when not movenext

Why my dataset does not detect changes when cursor or focus stays on the same control. When i edit an entry in datagrid or  textbox and click save. no changes will be saved. It needs to be Move to the next record before it detect the changes. Even GetChanges() returns 0.

Please help..
Avatar of CNTITDEPT
CNTITDEPT

did you  "AcceptChanges();" ?
Avatar of dehranph

ASKER

I do this on my finally block. Why i need to move the arrows in the datagrid up or down to make the datagrid/dataset accept the changes.

Call EndCurrentEdit() method of the CurrencyManager for the datasource you bound the grid to.
 like
    BindingContex[dataset,"TableName"].EndCurrentEdit()
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial