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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Ryan AlfordRank #1,411 · 1.2K reputationPosted Jun 18, 2008, 12:49 PM EDT
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.