GridGroupingControl - Getting reference to cell updated by underlying data source

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)

2 Replies

CH Clive Hill 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...


CH Clive Hill 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?

Loader.
Up arrow icon