|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Has Dataset Changed?Hello,
I have a form where I want to only enable a save button when something has changed in the dataset. Currently I'm checking current values against original values everytime a value is changed to enable/disable the save button. Is there a way of telling if a dataset has been changed (ds property?) other than using this method? Any help greatly appreciated! Thanks in advance Mark,
If ds.HasChanges Then ... Kerry Moorman Show quoteHide quote "Mark" wrote: > Hello, > > I have a form where I want to only enable a save button when something has > changed in the dataset. Currently I'm checking current values against > original values everytime a value is changed to enable/disable the save > button. Is there a way of telling if a dataset has been changed (ds > property?) other than using this method? > > Any help greatly appreciated! > Thanks in advance > > Thanks Kerry!
Show quoteHide quote "Kerry Moorman" wrote: > Mark, > > If ds.HasChanges Then ... > > Kerry Moorman > > > "Mark" wrote: > > > Hello, > > > > I have a form where I want to only enable a save button when something has > > changed in the dataset. Currently I'm checking current values against > > original values everytime a value is changed to enable/disable the save > > button. Is there a way of telling if a dataset has been changed (ds > > property?) other than using this method? > > > > Any help greatly appreciated! > > Thanks in advance > > > > Kerry Moorman wrote:
> Mark, I wonder if the DataSet class is "smart" enough to set this property> > If ds.HasChanges Then ... off if a changed value is changed back to the original value? Show quoteHide quote > > Kerry Moorman > > > "Mark" wrote: > > > Hello, > > > > I have a form where I want to only enable a save button when something has > > changed in the dataset. Currently I'm checking current values against > > original values everytime a value is changed to enable/disable the save > > button. Is there a way of telling if a dataset has been changed (ds > > property?) other than using this method? > > > > Any help greatly appreciated! > > Thanks in advance > > > > zacks,
No, I don't believe it is that smart. Kerry Moorman Show quoteHide quote "za***@construction-imaging.com" wrote: > > > I wonder if the DataSet class is "smart" enough to set this property > off if a changed value is changed back to the original value? > Kerry,
What do you mean with set back, if you mean set back by hand to the original values, than it will forever be a question if that was a change or not, however if it is using the methods Reject changes or accept changes, than it would do that. (Even it it has been a datarow that was changed) I hope this gives an idea, Cor <za***@construction-imaging.com> schreef in bericht Show quoteHide quote news:1156190452.936603.319310@m73g2000cwd.googlegroups.com... > > Kerry Moorman wrote: >> Mark, >> >> If ds.HasChanges Then ... > > I wonder if the DataSet class is "smart" enough to set this property > off if a changed value is changed back to the original value? > >> >> Kerry Moorman >> >> >> "Mark" wrote: >> >> > Hello, >> > >> > I have a form where I want to only enable a save button when something >> > has >> > changed in the dataset. Currently I'm checking current values against >> > original values everytime a value is changed to enable/disable the save >> > button. Is there a way of telling if a dataset has been changed (ds >> > property?) other than using this method? >> > >> > Any help greatly appreciated! >> > Thanks in advance >> > >> > >
Handling refreshes from browser
Re: SQL query to Excel file windowclosing not firing Change box color on checkbox control how to display a label only a while? How to check base class type of 'open' generic class? (inheritance check) Re: SQL query to Excel file Catch Application After Exit (WaitforExit) VB.Net Re: MS Access Reports and VB.NET Program RichTextBox problem |
|||||||||||||||||||||||