Filter data from button or automatically

Sorry for the little question, but ¿what is the proper way to filter data in an application?.

-The example show a case where the filter show the population from City.

  1. Automatically filter data when seleccion changed from ComboBox:

Example form with Combobox selection changed

Or

  1. Filter data when button "Filter" is pressed:

enter image description here