A
Arne
The code below complies but it does not test to DBNull.
What am I doing wrong?
DataRow row = Data.Tables[0].Rows[0];
Type t = row[1].GetType();
if ( row[1].GetType() != typeof( DBNull) )
{
i= Convert.ToInt32(row[1]);
}
What am I doing wrong?
DataRow row = Data.Tables[0].Rows[0];
Type t = row[1].GetType();
if ( row[1].GetType() != typeof( DBNull) )
{
i= Convert.ToInt32(row[1]);
}