We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Auditing Changed Records GridDataBoundGrid

Thread ID:





18673 Sep 7,2004 11:32 AM UTC Sep 7,2004 12:09 PM UTC WinForms 1
Tags: GridControl
John Slater
Asked On September 7, 2004 11:32 AM UTC

I would like to create an audit trail of certian cell values that are updated. I have an oleDataBoundAdapter which I am invoking the Adapter.Update(Dataset) method on. If I create an event handler on the RowUpdate event, is it possible to retrieve the previous value for a cell that was changed so it can be saved to an audit table? thx

Administrator [Syncfusion]
Replied On September 7, 2004 12:09 PM UTC

Not sure what RowUpdate event you are thinking about using. You could use grid.RowLeave and check grid.Binder.IsEditing to see if there is a change pending. If so, it would likely be easier to get values from your datasource before the change. int position = grid.Binder.RowIndexToPosition(e.RowIndex); CurrencyManager cm = (CurrencyManager) grid.BindingContext[grid.DataSource, grid.DataMember]; DataRowView drv = ((DataView)cm.List)[position]; //from drv, you can get fields like drv["Col1"].


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon