Answers for "datarow value null check"

1

datarow value null check

foreach(DataRow row in table.Rows)
{
    object value = row["ColumnName"];
    if (value == DBNull.Value)
        // do something
    else
        // do something else
}
Posted by: Guest on July-19-2020

Browse Popular Code Answers by Language