Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
can't set cell to blank value
posted

anyone know why i receive this error message when i try to set a cell to an empty value?
"Unable to update the data value: Cannot widen from target type to primitive type" 

i've tried integer and string datatype cells. both give the same error.

I've also tried to set the column as nullable and that gives me the same error.
i set the column as nullable in the InitializeLayout method and used this:
MyGridName.DisplayLayout.Bands(0).Columns("MyColumnName").Nullable = Nullable.Automatic
is that the right way to do it?