|
-
Mar 23rd, 2011, 01:16 PM
#1
Thread Starter
Fanatic Member
datagridview bound to bindingsource: displaying both old values and the new values
Hi,
I bound datagridview to bindingsource. The bindingsource has its datasource a collection Called Rates which is a collection of Rate items.
The rate object has a property called VALUE. I need the user to be able to edit different values for the collection; However, on the datagridview, i need to keep displaying on one column called OldValue the existing Rate value before the change while allowing the user to edit that value in a second column called NewValue.
In other terms, One colum OldValue will keep the existing values from the DB before being edited by the user, this column OldValue is readonly. Another column NewValue will display, the 1st time, the old value from the DB (similar to OldValue when we do the Fetch from the DB), but it`s editable column, so the user can modify each value in the column NewValue without overriding OldValue cells.
For now, I bound both columns OldValue and NewValue to the same property VALUE of the Rate object,
The problem I am having now is: when the user edits NewValue column, the same newvalue is copied to the first column : OldValue. I want the OldValue column to keep displaying the oldvalues instead of the new ones.
Do you know pls how I can do that ?
Thank you
Thanks a lot for your help.
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
|