arcgisdynamicmapservicelayer or featurelayer

Discussion created by sohnem2 on Oct 30, 2013
Latest reply on Nov 19, 2013 by odoe
I need to filter features that are shown on the map depending on search criteria and tie this in with datagrid as well.
Do I use a arcgisdynamicmapservicelayer or a feature layer?

With a arcgisdynamicmapservicelayer I just add it to the map layers and it automatically shows up on the map, but then how does one filter it and how does one tie it in with a datagrid?

With featurelayer, I can query it then how does one put it on the map and how does one tie it with a datagrid?