Link to home
Start Free TrialLog in
Avatar of MBHEY131
MBHEY131

asked on

datagridview/dataset ?

I'm loading a datagridview from a dataset and making edit's/adds/deletes to the datagridview and the dataset is getting updated properly but I cannot seem to figure out how the .DATAROWSTATE in the dataset gets changed to .modified - all rows in the dataset keep coming back "ADDED" IN THE ROW STATE? .HasChanges is true??

What can I do to the dataset to change the .rowstate in the dataset??
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

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
Avatar of MBHEY131
MBHEY131

ASKER

I WENT THE datagridview way in the showingeditcontrol or something like that - i needed a form level variable and all indexes on the view in the keypress event I just set IsDirty to true vary little code and so far so good! thanx for the article I will read it and keep it in mind
yeah - I read your article and I know that (NOW), I came from Foxpro 2.6, to VB 6.0 and now at VS 2012 - I was fairly proficient in 2.6 and did  a couple of small projects in 6.0 - I am updating my old foxpro 2.6 to vs 2012 and have about 15000 lines of code that can be easily condensed in half now that I am familiar with classes, structures, data sets,tables,bases but I don't think my customers will give me much more time for the upgrades - thanx a lot for the info.