[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

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..
0
dehranph
Asked:
dehranph
1 Solution
 
CNTITDEPTCommented:
did you  "AcceptChanges();" ?
0
 
dehranphAuthor Commented:
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.
0
 
sumixCommented:

Call EndCurrentEdit() method of the CurrencyManager for the datasource you bound the grid to.
 like
    BindingContex[dataset,"TableName"].EndCurrentEdit()
0
 
moduloCommented:
Closed, 50 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now