I populated datatable object with data from database, and I need to check if some of them are NULL and set it to empty string.
The problem is that some data are NULL in database but they are "0" in DataTable.
I have tried to set to "", String.EmptyString etc. nothing works.
foreach (DataRow row in ds.Tables[0].Rows)
{
foreach (DataColumn c in ds.Tables[0].Columns)
{
object value = row[c];
if (value == DBNull.Value)
{
try
{
row[c] = "";
Row.ItemArray[0]=0,Row.ItemArray[0]={1/1/1900 12:00:00 AM}.