Click here to Skip to main content
13,451,919 members (48,661 online)
Rate this:
Please Sign up or sign in to vote.
See more:
when i am using datatable concept for retrieving records from database,its converting null value to my table the column value is null.but while getting from datatable value as it possible to get it as null.
Posted 17-Dec-12 1:29am
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?
joshi.ihsoj 17-Dec-12 7:44am
dataset and selecting first datatable
Armando Talex 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Armando Talex 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180318.3 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100