update grid example to use paramAttributes