The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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)
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...
CHClive HillJuly 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?