jwcolby
jwcolby at colbyconsulting.com
Sat Mar 27 10:04:27 CDT 2010
What do you guys use to handle dirty records? I am migrating my billing program to C# and so have a ton of forms for the little list tables. If I forget to click save after making a change the change is not saved back to the database. Not cool. I have found a couple of pieces of code that do the check and at least tell you that the form is dirty. http://crfdesign.net/crf-design/quick-and-dirty-dirty-checking-for-windows-form-c http://www.mishainthecloud.com/2009/07/simple-dirty-tracking-for-winforms-in-c.html Either looks fine, but I just thought I'd check and see if y'all had any favorites or any words of wisdom. Also does this kind of code handle grid controls correctly? IOW if the form simply hosts a grid, will that grid report dirty and be picked up by this kind of code? -- John W. Colby www.ColbyConsulting.com