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
2715
String value in integer databound column
posted

Hi!

I have the following issue - the datasource for my ultragrid is a database table having a column called "quantity", of type integer.

I want that if the quantity is 0, do display in the grid "none", but i get a type conversion error, and nothing is displayed in that cell.

How could I solve this issue ?

Thanks!

Parents
  • 17259
    Offline posted

    What did you try to do when you got the error?

    You can solve it in several ways, but I think the simplest one is to add a ValueList with one item with "none" as text and zero as value.

Reply Children