I keep my grid synchronized with other controls on my form. That is, the controls and the grid must have the same ReadOnly property.
My problem is that there''s no event about style reference changing: GridModel.set_TableStyle or RowStyles/ColStyles simply set the new style reference but I don''t get an event about it. Therefore listening to StyleInfoBase.Changed is only a half solution.
Please, expand the style model with events about reference change, as you did with GridControlBase.ModelChanged.
ADAdministrator Syncfusion Team August 1, 2005 11:38 AM
Try listening to SaveCellInfo.
Check e.RowIndex and e.ColIndex. If both are -1, then the TableStyle is being set. If the row is -1 but the col > 0, then the column style is being set. And vice versa for therow style.