What conflict arose between Cary of The Good Wife and Lockhart & Gardner ?
In season 3 , Cary is appointed Cook County Deputy State 's Attorney , though he subsequently demotes himself for having an in-office affair .