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
1120
Default value as blank
posted

 Hi

In my wingrid my columns are dropdowns which are bound to datasourse. These are not dropdownlists, so we can type new values if we want.

Display member is a string and the vaule member is an integer.

Now everything works fine, but when we insert a new row..the default value that comes and sits in the cell is  0(zero). But its  misleading to the user as he may think that he has to type only intergers, so i want to replace that default value with blank.

And also i know that, we can format the columns to make it look blank, but zero reappears when the cell is selected(when cell goes to edit mode), even this is not acceptable for me and also those columns are not nullable in database.

So can anyone tell me how to replace the default value 0 with blank.

Thanks in advance

Navi 

 

Parents
No Data
Reply
  • 3186
    Offline posted

    Not sure this will work for you but you might set the defaultcellvalue to null and then set the nulltext property to "(blank)" or some other descriptive string.

    Nick

Children