Adding grid selection management.