PDA

View Full Version : datagrid and [null] display


paraglidersd
02-04-2009, 05:33 PM
question on a null cell in a datagrid. If the data provider provides an element/column (cell) with no content (for a datagrid), I get a "[null]" displayed in that cell. How do you handle it so that it displays nothing instead of the '[null]'?

paraglidersd
02-04-2009, 07:08 PM
I apologize. I meant that the cell displays "[object Object]". any ideas?

drkstr
02-04-2009, 09:51 PM
Strange, I don't remember that being the default behavior. What if you assign an empty string to the property in question instead of null? Otherwise you can add programmatic checks with an itemRenderer. It seems like that shouldn't be necessary though.


Best Regards,
~Aaron

fx.barrett
02-04-2009, 10:14 PM
Nopes, it shouldn't display null except if the provider you are assignig somehow send that null value as actual "null". Take a lookt at this example: http://blog.wisebisoft.com/2009/02/01/aspnet-c-web-service-and-flex/