Fix a compiler warning "Warning: Assignment within conditional.  Did you mean == instead of =?" in advancedgrids project