Click to See Complete Forum and Search --> : Reference of NULL value in datagrid returns nbsp;


gknierim
April 6th, 2003, 07:21 PM
I have binded a dataset to a datagrid. Some of the values that have been retrieved from the database are NULL. However, when I go to reference the selected row in the datagrid using the syntax e.Item.Cell(<cell # here>).Text, if that cell contained a NULL value, it is coming back as nbsp; and not NULL. Has anyone seen this or know of another way to retrieve the cell contents of the selected row?

Also, if I look at the source view of the compiled page, nbsp; is contained in the source. Is the DataBind() method replacing the NULL value with a nbsp; ???

Thanks for any suggestions or ideas.

Greg