update grid API