Set up FlexGrid api