Modified grid component to support bidi.
Fixed support for bidi in grid.