Simple question, apologies for being too simple.
UltraWinGrid.ColumnStyle.DropDownValidate
But I want to allow users to delete the entry and so set to NULL
What gets called is
1) Ultragrid1_CellDataError
2) Ultragrid1_Error
Then a 3rd message but i am not sure where it comes from
"Value in the editor is not valid"
Do i need to set as UltraWinGrid.ColumnStyle.DropDown and validate manually?
Just would have thought allowing for a delete (NULL) would be a hardcoded exception somehow........ perhaps a setting i cannot see????
I tried setting the column nullable property value to something besides the default setting - but did not fix it.
Perhaps I need a hot fix ? I am using 7.2.
It depends where the error is coming from. Are you sure your data source can support nulls? If it can't, then nothing you do in the grid will allow this to work.
It might not be possible using DropDownValidate, anyway. You may need to add a null item to the list. Or, you might have to set the style to DropDown and then validate the cell's value yourself in the BeforeCellUpdate event.