Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i am using datatable concept for retrieving records from database,its converting null value to empty.in my table the column value is null.but while getting from datatable value as empty.is it possible to get it as null.
Posted
Comments
Rai Pawan 17-Dec-12 7:35am    
how are you retrieving from database and what data type are you using i.e., data table/data reader/object structure?
josh-jw 17-Dec-12 7:44am    
dataset and selecting first datatable
[no name] 17-Dec-12 8:02am    
It will throuth you an exception as null reference if you want to access the null value from the database. Its not possible to retrieve the null value through data table or dataset.
You have to convert the null value to empty string.

1 solution

 
Share this answer
 
v2
Comments
[no name] 17-Dec-12 23:28pm    
Please Upvote this too...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900