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
585
Is it possible to capture a cell update event for a single column on a grid?
posted

I have a wingrid that contains 2 types of data:

1.  Status data that is automatically refreshed on a regular basis and is not editable by the user.

2. Configuration data that can be manually updated by the user. 

I have placed an AfterCellUpdate event handler on the grid to capture when the user modifiies a field so that I can change the forecolor and flag the update.

However, when the auto-refresh occurs and I update the cells in the status columns programatically, the event handler captures the update and executes.  I do not need to flag these changes, so I currently have logic in the event handler that looks for very specific columns.  If the column being updated is not one of the config columns, I skip the code (do nothing).

I'd rather not have the even handler fire over and over agian as the refresh updates all of the status fields, so I was wondering if there was a way to set an event handler for a specific column instead of the entire grid.  I tried suspending the event handler which worked, but caused problems, because, during an autorefresh,  the user could still be making changes to the config data and I still want the handler to caprutre these.

Any thoughts would be greatly appreciated.

Thanks so much,

Steve

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Steve,

    No, there are no events on the column. You would have to use AfterCellUpdate or CellChange and use a swtich (or Select) statement to bail out if it's not a column you need to process.

Children
No Data