I need to ensure that the grid with orders is not cancelled if at least the first order in the grid has already been executed, how should I set that up?

: Strategy settings

Use the IgnoreCancelBuy setting, if you check (YES), the rest of the grid will not be cancelled when at least one order from it is executed, if you uncheck (NO), the rest of the grid can be cancelled.