|
-
Jul 7th, 2008, 09:02 PM
#1
Thread Starter
Addicted Member
[RESOLVED]datagridview isdirty .
hi guys! i need your help. how will i able to know if the datagridview values has changes? i want to trigger it in button close, and i want to ask the user if he or she wants to save the changes.. thanks!
Last edited by hoobas20; Jul 7th, 2008 at 11:07 PM.
-
Jul 7th, 2008, 10:19 PM
#2
Re: datagridview isdirty .
The grid itself has no idea whether its data has changed or not. If you're bound to a DataTable you can call its GetChanges method and if it does not return null then some data has changed. If you're unbound or bound to some other list that doesn't tell you itself then you'll need to remember yourself by setting a flag when the grid raises a CellValueChanged event.
-
Jul 7th, 2008, 11:06 PM
#3
Thread Starter
Addicted Member
Re: datagridview isdirty .
thanks!! you're so great!!!
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
|