In your SQL statement, use the ISNULL( Field_Name, Default Value) For
istance Select ISNULL(Contact_Name, "--") From tbl_SomeTable
-----Original Message-----
From: Lopez, Lizzy [mailto:lizzy.lopez@e...]
Sent: Friday, February 14, 2003 8:53 AM
To: pro_VB_dotnet
Subject: [pro_vb_dotnet] Datagrid turn null to
I am using SQL Server 2000 as a database and I have a datagrid with 7
columns. One of the columns is the Contact Name which is not a
required field. Therefore, most of my record will have a null or
spaces in this field. When I look at the values coming out of the
fields that contains a null, it seems that the datagrid automatically
turned my null values into a
What can I do to change to ""? Is there anything I should
change in the datagrid? Replace? Or should it be in the select SQL?
Lizzy Lopez
Continental Enterprise Solution Centre (CESC) - Miramar
3450 Lakeside Drive, H501, Miramar, Fl 33027-3263
* Phone: (xxx)xxx-xxxx
*mailto:lizzy.lopez@e...
---
VB.NET Handbooks Library Special Offer
Get a massive 40% off this complete library
of books (US residents only at the moment).
Free ground shipping on this 10 book bundle!
http://www.wroxdirect.com/proddescription.asp?Bookselect=BUN10E004