-
August 14th, 2012, 05:18 AM
#1
Create a History table
Hi,
I have a datagridview (DgvPracExcl) which at runtime allows a user to update the records to a table in the database.
Now, I want to save a history prior to the update. Therefore, create a history table..
Any ideas...
Thanks
-
September 6th, 2012, 05:24 PM
#2
Re: Create a History table
my first idea is create handle keydown on datagridview.
on first keydown event store old value in memory , on enter/end edition compare with actual value, if different then log in your history...
This way you can log all rows or selected cells
Am I right?
-
September 6th, 2012, 05:47 PM
#3
Re: Create a History table
as long as the event was ONE KEYSTROKE only. not practical
-
September 6th, 2012, 06:38 PM
#4
Re: Create a History table
why? any clue?
then mayby cell.enter and cell.leave?
as I see, you have got solution.
benek
-
September 7th, 2012, 12:45 PM
#5
Re: Create a History table
Trap the ENTER key, the ARROW KEYS, and most importantly handle the BACKSPACE correctly. There are many samples. Cell Enter and Leave might or might not process the data before leaving
-
September 7th, 2012, 04:41 PM
#6
Re: Create a History table
then maybe cellchanged?
previous values are still in datatable, so u can compare these and logs
Last edited by benuto; September 7th, 2012 at 04:49 PM.
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
|