Answers for "datatable datarow check for null"

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
0

if datatable is null js

var table = $('#idTable').DataTable();

if ( ! table.data().any() ) {
    alert( 'Empty table' );
}
Posted by: Guest on December-23-2020

Browse Popular Code Answers by Language