I tested it out. In HamAlert, I set a trigger. In the "Spotter prefix" field, I entered my own district's call sign prefix (for example, B2, BA2, BD2, BG2, BH2, BI2). In the "Prefix" field, I entered the prefixes of the stations I was interested in (or selected from DXCC), and filled in the Band and Mode. This allows me to receive a notification when a station within the "Spotter prefix" contacts a station whose prefix is listed in the "Prefix" field.
While I couldn't achieve the desired grid-based filtering, using call sign prefixes and DXCC was sufficient.