binding a grid