I have a Datatable.
using (DataSet ds = new DataSet())
{
da.Fill(ds);
dt = ds.Tables[0];
}
The dt, return list of data like this,
From this image, when UserId is DBnull then I want to set docCount equl to 0. How can I do that?
I have a Datatable.
using (DataSet ds = new DataSet())
{
da.Fill(ds);
dt = ds.Tables[0];
}
The dt, return list of data like this,
From this image, when UserId is DBnull then I want to set docCount equl to 0. How can I do that?