add sub grid API
fix grid and sub grid