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 will assign a property of the control through the viewer from the value of the corresponding cell. On the other hand, the GetControlValueCore will set the value of the cell through the editor (will get the value of the control to the cell).

The GetImageCore (like GetTextCore) is only called when there is no control assigned to the CellViewerManager.

Ultimately, I am not completely sure to understand what you are trying to achieve. If you want to set an image, you need to set the control used by the CellViewerManager (a control that accepts image and a value). If you need to paint some text and an image, you can override GetImageCore and GetTextCore to return the text to paint depending on the cell value.

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