I am trying to remove rows from datatable in which a certain cell is empty. I have tried using for loop but to no avail.

```
for (int i = dtbl.Rows.Count - 1; i >= 0; i--)
        {
           DataRow dr = dtbl.Rows[i];
            if (dr["id"] == null)
               dtbl.Rows.Remove(dr);
        }

```

[![enter image description here](https://i.stack.imgur.com/pM5LF.png)](https://i.stack.imgur.com/pM5LF.png)

If the cell of ID column is empty, then that row should be deleted.
Any help is appreciated. Thanks in advance.