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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Getting reference to cell updated by underlying data source

Thread ID:





46585 Jul 17,2006 09:36 AM UTC Jul 17,2006 06:32 PM UTC WinForms 2
Tags: GridControl
Clive Hill
Asked On July 17, 2006 09:36 AM UTC

I subscribe to an external source of data and when I get updates, get the DataSource back from GGC (which is a DataTable), find the row I need and update a cell. The problem I''m having is how to get a reference to the cell that was updated in the GGC. None of the GGC events are triggerred if the underlying data source is updated directly, using GGC.Table.GetInnerMostElement() returns null, ggc.TableControlPrepareViewStyleInfo seems to be called for every cell when an update is made... What is recommended way of getting this reference back? (I need handle on the cell to update Style properties of the cell)

Clive Hill
Replied On July 17, 2006 01:16 PM UTC

Any help with this would be appreciated. Perhaps one of the methods I mentioned is the correct way, and I jsut need to work on it to get it to work...

Clive Hill
Replied On July 17, 2006 06:32 PM UTC

Seems like the correct event to use is: _dataGrid.SourceListRecordChanged += new RecordChangedEventHandler(_dataGrid_SourceListRecordChanged); This updates when the DataSource updates. I can get a handle on the record that has changed by doing, where e = RecordChangedEventArgs e.Record From here though I''m not sure how to get hold of the GridStyleInfo for the cell that''s been updated, so I can do currentCell.StyleInfo.BackColor... (GGC.TableControl.CurrentCell and then renderer doesn''t work, as the cell updated is not the current cell) Recommendations?


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

or the page will be automatically redirected to 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