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?

 

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    What kind of data source are you using for your grid? What data type is the field? Is it actually integer and string or are you using nullable types? 

Children