|
-
Feb 1st, 2008, 01:50 AM
#1
Thread Starter
Hyperactive Member
[2005] Datagridview changes
How do i identify changes made in the datagridview while closing a form containing DGV? If the changes have been made then it must ask me to save or discard changes.
-
Feb 1st, 2008, 02:18 AM
#2
Re: [2005] Datagridview changes
Is the grid bound? Is it bound to a DataTable. If so the table's GetChanges method will tell you. It will return Nothing if no changes have been made. If the grid is not bound or it's not bound to a DataTable then it's up to you to handle the appropriate event(s) to be notified when a change is made to the data and set a flag. You can then test the flag when you're closing the form.
Last edited by jmcilhinney; Feb 2nd, 2008 at 03:05 AM.
-
Feb 2nd, 2008, 12:51 AM
#3
Thread Starter
Hyperactive Member
Re: [2005] Datagridview changes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|