Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Version
posted

Hi All

I have a Data Grid and a column called Version what i want to do is when a record has been changed it will create a hierachy of the changes and also change the version number.

Does any one know how to do this . ?

 

Thanks in advance

 

  • 2426
    Suggested Answer
    posted

    Hello Craig,

    This could be done with an object that is a version of your business object. For instance you could have a Customer object with an IEnumerable<CustomerVersion> property that keeps a collection of CustomerVersion objects which have fields that match that of your Customer object.

    Also, you can create a Version property on the Customer object that is updated whenever the record is updated.

    Whenever someone edits the record, you can have the grid add a new CustomerVersion to the IEnumerable property and then update the count of the Version property. You can probably use the RecordUpdated event for this.