A solid grid graph is a finite induced subgraph of the infinite grid t
hat has no holes. We present a polynomial algorithm for computing the
minimum number of edges we need to delete in order to divide a given s
olid grid graph into two parts containing an equal number of nodes. Th
e algorithm is based on dynamic programming, and it extends to several
related problems, including grid graphs with a bounded number of hole
s.