I am using .net 2003....
I am fetching record from oracle server using sp bind it to my datagrid...
In DB table some textboxes are null(blank).Its shows[null] in the datagrid how to i remove this null from my datagrid.Can anyone help with code?
I am using .net 2003....
I am fetching record from oracle server using sp bind it to my datagrid...
In DB table some textboxes are null(blank).Its shows[null] in the datagrid how to i remove this null from my datagrid.Can anyone help with code?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ryan AlfordPosted Jun 18, 2008, 4:49 PM
or, the simpler method, don't allow nulls to come from the database. Use Oracle's NVL() method to set a "default" value to if there is a null value.
ex.
SELECT
NVL(Customer_Name, ' ') AS 'Customer Name'
FROM Customer
that will return a blank space if the customer name is null.
It's never good practice to have null values coming from a database query.