How to use refresh method in ui-grid?

I am trying to update visibility option in the columDefs of my ui-grid. After updating the value I need to refresh my ui-grid. What is the way to refresh my grid from my controller.

Thanks,

Visit this page: http://ui-grid.info/docs/#/api/ui.grid.core.api:PublicApi

After having instantiated your gridApi, you can just call:

$scope.gridApi.core.refresh();

Hope that helps!