Undo list on datagridview
Hi, Im trying to create dgv with undo function...so im trying to save datagridviewrow ( not just data, but fore and backcolors, fonts) in collection, datatable....
problem is that ,for example, after five changes on same row I get five identical rows from my collection...its like coll refresh all its innerlist values with last added row!!!!
[355 byte] By [
zmrcic] at [2008-1-10]
? I have a list that stores every row(data,cellstyle...)...and I have one row in dgv...
1. cnahge forecolor of first 5 cells and store row in list
so first five cells are red and last five are black
2. cnahge forecolor of last 5 cells and store row in list
so first five cells are red and last five are blue
when i look into list bouth entries have same values for last five cells...?
Sorry, I dont quite understand what you mean. Do you mind checking what's the row in dgv and what the values in list after operation 1 and operation 2? I mean, debug into it and watch values after each operation?
zmrcic wrote: |
| ? I have a list that stores every row(data,cellstyle...)...and I have one row in dgv... 1. cnahge forecolor of first 5 cells and store row in list so first five cells are red and last five are black 2. cnahge forecolor of last 5 cells and store row in list so first five cells are red and last five are blue when i look into list bouth entries have same values for last five cells...? | |
Back to my first question...HOW TO IMPLEMENT UNDO ON DATAGRIDVIEW!!!!!
and not just cells data, but also tags and style?