Hi,
we have investigated a strange behavior in the GGC. Attached is a simple example which helps to explain the issue (it is just a fast dirty hack).
So our GGC is bound to a business object which implements IBindingList. Furthermore we have implemented a custom cell renderer to handle our custom objects. We use the OnValidate method of the derived GridComboBoxCellRenderer. Now when you start the attached example, directly click in the append new line row, enter "5" (as numeric value) and press return. So as I understand the binding mechanism, the binding list adds a new object to its internal list implementation when you enter the value "5". Now when you press return the OnValidate method is called. So in this method we use the ControlValue or the CurrentStyle.CellValue to use the type definition for validation. The problem is, that both - the ControlValue and the CurrentStyle.CellValue contain a null reference. So how can I get the value. I know the ControlText property contains the string, but I need to get the underlyling object. The CurrentStyle.CellValueType contains the type information, but the CellValue itself is a null reference.
It would be nice if you could help us.
Cheers,
Jack
OnValidateInCustomRenderer.zip