Home Forums WinForms controls Xceed Grid for WinForms SetControlValueCore not called in ImageViewer Reply To: SetControlValueCore not called in ImageViewer

Xceed Support
Post count: 5658

The SetControlValueCore is only called if the CellViewerManager uses a sub-control. The ImageViewer does not use any sub-control, it only overrides the getImageCore to extract the image from the cell value.

In the Paint, the received image is painted. After, if the viewer uses a control, the control is painted. In this case (ImageViewer), there is no control to paint.

If you the SetControlValueCore to be called, you need to use the CellViewerManager’s constructor that takes a control and a property as parameters.

Imported from legacy forums. Posted by CharlesB (had 221 views)